arreglos varios pa que JailDoc puga tastar com va açò
This commit is contained in:
@@ -631,6 +631,19 @@ namespace Options {
|
||||
}
|
||||
}
|
||||
|
||||
// Carga configuración de la pantalla de carga de recursos desde YAML
|
||||
void loadLoadingConfigFromYaml(const fkyaml::node& yaml) {
|
||||
if (!yaml.contains("loading")) { return; }
|
||||
const auto& l = yaml["loading"];
|
||||
|
||||
if (l.contains("show_progress")) {
|
||||
try {
|
||||
loading.show_progress = l["show_progress"].get_value<bool>();
|
||||
} catch (...) { /* @INTENTIONAL: campo yaml ausente o malformado → dejar default */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Carga configuración de idioma desde YAML
|
||||
void loadLocalizationFromYaml(const fkyaml::node& yaml) {
|
||||
if (yaml.contains("localization")) {
|
||||
@@ -696,6 +709,7 @@ namespace Options {
|
||||
loadKioskConfigFromYaml(yaml);
|
||||
loadLocalizationFromYaml(yaml);
|
||||
loadConsoleConfigFromYaml(yaml);
|
||||
loadLoadingConfigFromYaml(yaml);
|
||||
|
||||
std::cout << "Config file loaded successfully\n\n";
|
||||
|
||||
@@ -832,6 +846,12 @@ namespace Options {
|
||||
file << " text: \"" << kiosk.text << "\"\n";
|
||||
file << " infinite_lives: " << (kiosk.infinite_lives ? "true" : "false") << "\n";
|
||||
|
||||
// LOADING
|
||||
file << "\n";
|
||||
file << "# LOADING (pantalla de carga de recursos)\n";
|
||||
file << "loading:\n";
|
||||
file << " show_progress: " << (loading.show_progress ? "true" : "false") << " # mostrar barra de progreso al cargar recursos\n";
|
||||
|
||||
// LOCALIZATION
|
||||
file << "\n";
|
||||
file << "# LOCALIZATION (en = English, ca = Catalan)\n";
|
||||
|
||||
Reference in New Issue
Block a user