Eliminados los mensajes de consola generados al cargar ficheros de menu

This commit is contained in:
2023-09-19 22:28:59 +02:00
parent 3ece7f9ec5
commit 2e5f52d836

View File

@@ -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;
}