mirror of
https://github.com/libretro/RetroArch
synced 2025-04-03 10:21:31 +00:00
Add RARCH_CMD_AUTOSAVE_STATE
This commit is contained in:
parent
5b053a96df
commit
68df820c06
@ -105,6 +105,7 @@ enum basic_event
|
|||||||
RARCH_CMD_REWIND_TOGGLE,
|
RARCH_CMD_REWIND_TOGGLE,
|
||||||
RARCH_CMD_AUTOSAVE_DEINIT,
|
RARCH_CMD_AUTOSAVE_DEINIT,
|
||||||
RARCH_CMD_AUTOSAVE_INIT,
|
RARCH_CMD_AUTOSAVE_INIT,
|
||||||
|
RARCH_CMD_AUTOSAVE_STATE,
|
||||||
RARCH_CMD_AUDIO_STOP,
|
RARCH_CMD_AUDIO_STOP,
|
||||||
RARCH_CMD_AUDIO_START,
|
RARCH_CMD_AUDIO_START,
|
||||||
RARCH_CMD_OVERLAY_INIT,
|
RARCH_CMD_OVERLAY_INIT,
|
||||||
|
@ -2255,6 +2255,9 @@ void rarch_main_command(unsigned cmd)
|
|||||||
init_autosave();
|
init_autosave();
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
|
case RARCH_CMD_AUTOSAVE_STATE:
|
||||||
|
save_auto_state();
|
||||||
|
break;
|
||||||
case RARCH_CMD_AUDIO_STOP:
|
case RARCH_CMD_AUDIO_STOP:
|
||||||
if (!driver.audio_data)
|
if (!driver.audio_data)
|
||||||
return;
|
return;
|
||||||
@ -2613,7 +2616,7 @@ void rarch_main_deinit(void)
|
|||||||
rarch_main_command(RARCH_CMD_CHEATS_DEINIT);
|
rarch_main_command(RARCH_CMD_CHEATS_DEINIT);
|
||||||
rarch_main_command(RARCH_CMD_BSV_MOVIE_DEINIT);
|
rarch_main_command(RARCH_CMD_BSV_MOVIE_DEINIT);
|
||||||
|
|
||||||
save_auto_state();
|
rarch_main_command(RARCH_CMD_AUTOSAVE_STATE);
|
||||||
|
|
||||||
deinit_core();
|
deinit_core();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user