Update settings.c

This commit is contained in:
Robin Jones 2023-11-10 17:27:28 +00:00 committed by GitHub
parent dba02e990f
commit 79a3deb210
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,9 +14,6 @@ static settings_t init = {
.default_directory = "/",
.use_saves_folder = true,
/* flashcart specific feature flags */
.last_rom_path = "/",
/* Beta feature flags */
.bgm_enabled = false,
.sound_enabled = false,
@ -37,10 +34,6 @@ void settings_load (settings_t *settings) {
settings->default_directory = strdup(mini_get_string(ini, "menu", "default_directory", init.default_directory));
settings->use_saves_folder = mini_get_bool(ini, "menu", "use_saves_folder", init.use_saves_folder);
/* flashcart specific feature flags */
settings->last_rom_path = strdup(mini_get_string(ini, "menu", "last_rom_path", init.last_rom_path));
/* Beta feature flags, they might not be in the file */
settings->bgm_enabled = mini_get_bool(ini, "menu_beta_flag", "bgm_enabled", init.bgm_enabled);
settings->sound_enabled = mini_get_bool(ini, "menu_beta_flag", "sound_enabled", init.sound_enabled);