mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
(core options) Simplifications
This commit is contained in:
parent
9f4e8688f3
commit
6e8797d2ef
@ -446,7 +446,7 @@ static void core_option_manager_get(core_option_manager_t *opt,
|
|||||||
|
|
||||||
if (string_is_equal(opt->opts[i].key, var->key))
|
if (string_is_equal(opt->opts[i].key, var->key))
|
||||||
{
|
{
|
||||||
var->value = core_option_manager_get_val(opt, i);
|
var->value = opt->opts[i].vals->elems[opt->opts[i].index].data;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -529,7 +529,7 @@ static bool core_option_manager_flush(core_option_manager_t *opt)
|
|||||||
|
|
||||||
if (option)
|
if (option)
|
||||||
config_set_string(opt->conf, option->key,
|
config_set_string(opt->conf, option->key,
|
||||||
core_option_manager_get_val(opt, i));
|
opt->opts[i].vals->elems[opt->opts[i].index].data);
|
||||||
}
|
}
|
||||||
|
|
||||||
RARCH_LOG("Saved core options file to \"%s\"\n", opt->conf_path);
|
RARCH_LOG("Saved core options file to \"%s\"\n", opt->conf_path);
|
||||||
@ -556,7 +556,7 @@ static bool core_option_manager_flush_game_specific(
|
|||||||
|
|
||||||
if (option)
|
if (option)
|
||||||
config_set_string(opt->conf, option->key,
|
config_set_string(opt->conf, option->key,
|
||||||
core_option_manager_get_val(opt, i));
|
opt->opts[i].vals->elems[opt->opts[i].index].data);
|
||||||
}
|
}
|
||||||
|
|
||||||
return config_file_write(opt->conf, path, true);
|
return config_file_write(opt->conf, path, true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user