mirror of
https://github.com/libretro/RetroArch
synced 2025-03-17 10:21:26 +00:00
Merge pull request #8680 from jdgleaver/state-no-resume
For platforms without HAVE_THREADS, don't automatically resume content when saving/loading states
This commit is contained in:
commit
792031c45e
@ -3255,7 +3255,12 @@ static int action_ok_load_state(const char *path,
|
||||
{
|
||||
if (generic_action_ok_command(CMD_EVENT_LOAD_STATE) == -1)
|
||||
return menu_cbs_exit();
|
||||
/* TODO/FIXME: Make this a user-configurable option */
|
||||
#if defined(HAVE_THREADS)
|
||||
return generic_action_ok_command(CMD_EVENT_RESUME);
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
static int action_ok_save_state(const char *path,
|
||||
@ -3263,7 +3268,12 @@ static int action_ok_save_state(const char *path,
|
||||
{
|
||||
if (generic_action_ok_command(CMD_EVENT_SAVE_STATE) == -1)
|
||||
return menu_cbs_exit();
|
||||
/* TODO/FIXME: Make this a user-configurable option */
|
||||
#if defined(HAVE_THREADS)
|
||||
return generic_action_ok_command(CMD_EVENT_RESUME);
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
static int action_ok_cheevos_toggle_hardcore_mode(const char *path,
|
||||
|
Loading…
x
Reference in New Issue
Block a user