Skip to content

Commit

Permalink
Make auto state while loading new content on the fly (#16835)
Browse files Browse the repository at this point in the history
  • Loading branch information
viachaslavic committed Sep 12, 2024
1 parent 2ecf5e7 commit bb3e1d8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions retroarch.c
Original file line number Diff line number Diff line change
Expand Up @@ -4199,6 +4199,14 @@ bool command_event(enum event_command cmd, void *data)
settings->bools.content_runtime_log_aggregate,
settings->paths.directory_runtime_log,
settings->paths.directory_playlist);

if ( runloop_st->flags & RUNLOOP_FLAG_CORE_RUNNING
&& settings->bools.savestate_auto_save)
{
command_event_save_auto_state();
content_wait_for_save_state_task();
}

content_reset_savestate_backups();
hwr = VIDEO_DRIVER_GET_HW_CONTEXT_INTERNAL(video_st);
#ifdef HAVE_CHEEVOS
Expand Down

0 comments on commit bb3e1d8

Please sign in to comment.