Add RARCH_CMD_AUTOSAVE_STATE

This commit is contained in:
twinaphex 2014-10-05 15:36:57 +02:00
parent 5b053a96df
commit 68df820c06
2 changed files with 5 additions and 1 deletions

View File

@ -105,6 +105,7 @@ enum basic_event
RARCH_CMD_REWIND_TOGGLE,
RARCH_CMD_AUTOSAVE_DEINIT,
RARCH_CMD_AUTOSAVE_INIT,
RARCH_CMD_AUTOSAVE_STATE,
RARCH_CMD_AUDIO_STOP,
RARCH_CMD_AUDIO_START,
RARCH_CMD_OVERLAY_INIT,

View File

@ -2255,6 +2255,9 @@ void rarch_main_command(unsigned cmd)
init_autosave();
#endif
break;
case RARCH_CMD_AUTOSAVE_STATE:
save_auto_state();
break;
case RARCH_CMD_AUDIO_STOP:
if (!driver.audio_data)
return;
@ -2613,7 +2616,7 @@ void rarch_main_deinit(void)
rarch_main_command(RARCH_CMD_CHEATS_DEINIT);
rarch_main_command(RARCH_CMD_BSV_MOVIE_DEINIT);
save_auto_state();
rarch_main_command(RARCH_CMD_AUTOSAVE_STATE);
deinit_core();