mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
allow saving manually when overrides are active
This commit is contained in:
parent
46cadbe846
commit
3ef7d0f4de
@ -725,6 +725,7 @@ static bool event_save_core_config(void)
|
|||||||
config_path[PATH_MAX_LENGTH], msg[PATH_MAX_LENGTH];
|
config_path[PATH_MAX_LENGTH], msg[PATH_MAX_LENGTH];
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
bool found_path = false;
|
bool found_path = false;
|
||||||
|
bool overrides_active = false;
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
global_t *global = global_get_ptr();
|
global_t *global = global_get_ptr();
|
||||||
|
|
||||||
@ -786,6 +787,13 @@ static bool event_save_core_config(void)
|
|||||||
sizeof(config_path));
|
sizeof(config_path));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Overrides block config file saving, make it appear as overrides weren't enabled for a manual save */
|
||||||
|
if (global->overrides_active)
|
||||||
|
{
|
||||||
|
global->overrides_active = false;
|
||||||
|
overrides_active = true;
|
||||||
|
}
|
||||||
|
|
||||||
if ((ret = config_save_file(config_path)))
|
if ((ret = config_save_file(config_path)))
|
||||||
{
|
{
|
||||||
strlcpy(global->config_path, config_path,
|
strlcpy(global->config_path, config_path,
|
||||||
@ -802,7 +810,7 @@ static bool event_save_core_config(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
rarch_main_msg_queue_push(msg, 1, 180, true);
|
rarch_main_msg_queue_push(msg, 1, 180, true);
|
||||||
|
global->overrides_active = overrides_active;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user