Arreglos en la estructura i format del codi

This commit is contained in:
2025-03-01 17:01:50 +01:00
parent 3562b139c3
commit 31cded15cc
35 changed files with 496 additions and 755 deletions

View File

@@ -39,9 +39,8 @@ bool loadOptionsFromFile(const std::string &file_path)
options.version = "";
// Variables para manejar el fichero
std::string line;
std::ifstream file(file_path);
// Si el fichero se puede abrir
if (file.good())
{
@@ -50,6 +49,7 @@ bool loadOptionsFromFile(const std::string &file_path)
{
std::cout << "Reading file config.txt\n";
}
std::string line;
while (std::getline(file, line))
{
// Elimina espacios en blanco iniciales y finales