mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
Merge pull request #4999 from fr500/master
prevent these tasks to run more than once on shutdown
This commit is contained in:
commit
973600ab30
@ -2159,9 +2159,12 @@ void retroarch_fail(int error_code, const char *error)
|
|||||||
|
|
||||||
bool retroarch_main_quit(void)
|
bool retroarch_main_quit(void)
|
||||||
{
|
{
|
||||||
command_event(CMD_EVENT_AUTOSAVE_STATE, NULL);
|
if (!runloop_shutdown_initiated)
|
||||||
command_event(CMD_EVENT_DISABLE_OVERRIDES, NULL);
|
{
|
||||||
command_event(CMD_EVENT_RESTORE_DEFAULT_SHADER_PRESET, NULL);
|
command_event(CMD_EVENT_AUTOSAVE_STATE, NULL);
|
||||||
|
command_event(CMD_EVENT_DISABLE_OVERRIDES, NULL);
|
||||||
|
command_event(CMD_EVENT_RESTORE_DEFAULT_SHADER_PRESET, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
runloop_shutdown_initiated = true;
|
runloop_shutdown_initiated = true;
|
||||||
rarch_menu_running_finished();
|
rarch_menu_running_finished();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user