For platforms without HAVE_THREADS, don't automatically resume content when saving/loading states

This commit is contained in:
jdgleaver 2019-05-03 16:32:48 +01:00
parent b9cdeebf35
commit 4502b58ab3

View File

@ -3255,7 +3255,11 @@ static int action_ok_load_state(const char *path,
{
if (generic_action_ok_command(CMD_EVENT_LOAD_STATE) == -1)
return menu_cbs_exit();
#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 +3267,11 @@ static int action_ok_save_state(const char *path,
{
if (generic_action_ok_command(CMD_EVENT_SAVE_STATE) == -1)
return menu_cbs_exit();
#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,