|
|
@@ -176,14 +176,18 @@ bool loadLagueirtoFile(const std::string §ion_to_load)
|
|
|
|
if (end == std::string::npos) continue;
|
|
|
|
if (end == std::string::npos) continue;
|
|
|
|
|
|
|
|
|
|
|
|
current_section = line.substr(1, end - 1);
|
|
|
|
current_section = line.substr(1, end - 1);
|
|
|
|
|
|
|
|
|
|
|
|
// Detectar si es default
|
|
|
|
// Detectar si es default
|
|
|
|
std::string rest = trim_copy(line.substr(end + 1));
|
|
|
|
std::string rest = trim_copy(line.substr(end + 1));
|
|
|
|
found_any_section = true;
|
|
|
|
found_any_section = true;
|
|
|
|
if (rest == "default") found_default = true;
|
|
|
|
if (rest == "default") found_default = true;
|
|
|
|
if (section_to_load.empty() && rest == "default") active = true;
|
|
|
|
if (section_to_load.empty() && rest == "default") active = true;
|
|
|
|
else active = (current_section == section_to_load);
|
|
|
|
else active = (current_section == section_to_load);
|
|
|
|
if (active) loaded_section = current_section;
|
|
|
|
if (active) {
|
|
|
|
|
|
|
|
loaded_section = current_section;
|
|
|
|
|
|
|
|
std::cout << " > " << current_section << " < " << std::endl;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
std::cout << " - " << current_section << std::endl;
|
|
|
|
|
|
|
|
}
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@@ -546,7 +550,7 @@ std::cout << " |___/ v" << LAGUEIRTO_VERSION << std::endl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (must_recompile_all) {
|
|
|
|
if (must_recompile_all) {
|
|
|
|
std::cout << "remove: '" << build_path << "'" << std::endl;
|
|
|
|
std::cout << "Doing a full rebuild" << std::endl;
|
|
|
|
std::filesystem::remove_all(build_path);
|
|
|
|
std::filesystem::remove_all(build_path);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|