mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-21 02:08:16 +00:00
Start using configuration_set_bool
This commit is contained in:
parent
1febb963ae
commit
ccc8d1aec2
@ -497,6 +497,10 @@ typedef struct settings
|
||||
|
||||
} settings_t;
|
||||
|
||||
#define configuration_set_bool(settings, var, newvar) \
|
||||
settings->modified = true; \
|
||||
var = newvar
|
||||
|
||||
#define configuration_set_int(settings, var, newvar) \
|
||||
settings->modified = true; \
|
||||
var = newvar
|
||||
|
@ -162,7 +162,9 @@ static void bundle_decompressed(void *task_data,
|
||||
|
||||
settings->bundle_assets_extract_last_version =
|
||||
settings->bundle_assets_extract_version_current;
|
||||
settings->bundle_finished = true;
|
||||
|
||||
configuration_set_bool(settings, settings->bundle_finished, true);
|
||||
|
||||
command_event(CMD_EVENT_MENU_SAVE_CURRENT_CONFIG, NULL);
|
||||
}
|
||||
#endif
|
||||
@ -185,7 +187,10 @@ static bool menu_init(menu_handle_t *menu_data)
|
||||
if (settings->menu_show_start_screen)
|
||||
{
|
||||
menu_dialog_push_pending(true, MENU_DIALOG_WELCOME);
|
||||
settings->menu_show_start_screen = false;
|
||||
|
||||
configuration_set_bool(settings,
|
||||
settings->menu_show_start_screen, false);
|
||||
|
||||
if (settings->config_save_on_exit)
|
||||
command_event(CMD_EVENT_MENU_SAVE_CURRENT_CONFIG, NULL);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user