From 2e5f52d836310cedb362e2df3564385f1f0d321c Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Tue, 19 Sep 2023 22:28:59 +0200 Subject: [PATCH] Eliminados los mensajes de consola generados al cargar ficheros de menu --- source/common/menu.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/common/menu.cpp b/source/common/menu.cpp index 0027050..f807d3e 100644 --- a/source/common/menu.cpp +++ b/source/common/menu.cpp @@ -108,7 +108,7 @@ bool Menu::load(std::string file_path) if (file.good()) { // Procesa el fichero linea a linea - std::cout << "Reading file " << filename.c_str() << std::endl; + //std::cout << "Reading file " << filename.c_str() << std::endl; while (std::getline(file, line)) { if (line == "[item]") @@ -132,7 +132,7 @@ bool Menu::load(std::string file_path) // Procesa las dos subcadenas if (!setItem(&item, line.substr(0, pos), line.substr(pos + 1, line.length()))) { - std::cout << "Warning: file " << filename.c_str() << "\n, unknown parameter \"" << line.substr(0, pos).c_str() << "\"" << std::endl; + //std::cout << "Warning: file " << filename.c_str() << "\n, unknown parameter \"" << line.substr(0, pos).c_str() << "\"" << std::endl; success = false; } @@ -149,7 +149,7 @@ bool Menu::load(std::string file_path) // Procesa las dos subcadenas if (!setVars(line.substr(0, pos), line.substr(pos + 1, line.length()))) { - std::cout << "Warning: file " << filename.c_str() << "\n, unknown parameter \"" << line.substr(0, pos).c_str() << "\"" << std::endl; + //std::cout << "Warning: file " << filename.c_str() << "\n, unknown parameter \"" << line.substr(0, pos).c_str() << "\"" << std::endl; success = false; } @@ -163,13 +163,13 @@ bool Menu::load(std::string file_path) } // Cierra el fichero - std::cout << "Closing file " << filename.c_str() << std::endl; + //std::cout << "Closing file " << filename.c_str() << std::endl; file.close(); } // El fichero no se puede abrir else { - std::cout << "Warning: Unable to open " << filename.c_str() << " file" << std::endl; + //std::cout << "Warning: Unable to open " << filename.c_str() << " file" << std::endl; success = false; }