aboutsummaryrefslogtreecommitdiff
path: root/funkey/fk_instant_play.c
diff options
context:
space:
mode:
Diffstat (limited to 'funkey/fk_instant_play.c')
-rw-r--r--funkey/fk_instant_play.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/funkey/fk_instant_play.c b/funkey/fk_instant_play.c
index 638e0fd..aac9091 100644
--- a/funkey/fk_instant_play.c
+++ b/funkey/fk_instant_play.c
@@ -33,6 +33,7 @@
#include "fk_menu.h"
#include "fk_instant_play.h"
#include "core.h"
+#include "overrides.h"
#include "util.h"
#ifndef SHELL_CMD_POWERDOWN
@@ -40,6 +41,8 @@
#define SHELL_CMD_POWERDOWN_HANDLE "powerdown handle"
#endif
+#define AUTOSAVE_SLOT 99
+
static char *prog_name;
int instant_play = 0;
@@ -125,7 +128,9 @@ void FK_LoadNewGame(const char *fname)
void FK_Autosave(void)
{
- if (state_allowed()) {
+ const struct core_override *override = get_overrides();
+
+ if (state_allowed() && (!override || !(override->prevent_resume))) {
int prev_state_slot = state_slot;
state_slot = AUTOSAVE_SLOT;
state_write();