From 4502b58ab3983b449184e681c3923c1a781c91ea Mon Sep 17 00:00:00 2001 From: jdgleaver Date: Fri, 3 May 2019 16:32:48 +0100 Subject: [PATCH] For platforms without HAVE_THREADS, don't automatically resume content when saving/loading states --- menu/cbs/menu_cbs_ok.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/menu/cbs/menu_cbs_ok.c b/menu/cbs/menu_cbs_ok.c index 954247b691..b5e34280e7 100644 --- a/menu/cbs/menu_cbs_ok.c +++ b/menu/cbs/menu_cbs_ok.c @@ -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,