aboutsummaryrefslogtreecommitdiff
path: root/funkey
diff options
context:
space:
mode:
authorneonloop2023-01-29 07:37:02 +0000
committerneonloop2023-01-29 07:37:02 +0000
commit67740303f51ca3e5aa7edb19d1d2760990bf0b0c (patch)
tree856d1171457f816a5d3841567c72bc5cfa18ac97 /funkey
parentacf64246dfbcb2cd9bd1e4c65fc11c409f892863 (diff)
downloadpicoarch-67740303f51ca3e5aa7edb19d1d2760990bf0b0c.tar.gz
picoarch-67740303f51ca3e5aa7edb19d1d2760990bf0b0c.tar.bz2
picoarch-67740303f51ca3e5aa7edb19d1d2760990bf0b0c.zip
Adds dosbox-pure core
dosbox-pure does not support resume states, because it loads puremenu before loading game. Savestates can also glitch loaded game.
Diffstat (limited to 'funkey')
-rw-r--r--funkey/fk_instant_play.c7
-rw-r--r--funkey/fk_instant_play.h1
2 files changed, 6 insertions, 2 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();
diff --git a/funkey/fk_instant_play.h b/funkey/fk_instant_play.h
index 2ed3c71..d51cc5b 100644
--- a/funkey/fk_instant_play.h
+++ b/funkey/fk_instant_play.h
@@ -38,7 +38,6 @@ extern "C" {
#include <signal.h>
-#define AUTOSAVE_SLOT 99
extern int instant_play;
extern void FK_InitInstantPlay(int argc, char **argv);