aboutsummaryrefslogtreecommitdiff
path: root/funkey/fk_instant_play.c
diff options
context:
space:
mode:
authorneonloop2023-02-01 16:29:49 +0000
committerneonloop2023-02-01 16:29:49 +0000
commit650d01ac57aab5a9c757cc0c1edbc13226ef533c (patch)
treeaffaed7b33a6a8c3ead975f8a745055d35043c47 /funkey/fk_instant_play.c
parent685a35b3253ecb7c4c31ba8419c745dbbe620fd6 (diff)
downloadpicoarch-650d01ac57aab5a9c757cc0c1edbc13226ef533c.tar.gz
picoarch-650d01ac57aab5a9c757cc0c1edbc13226ef533c.tar.bz2
picoarch-650d01ac57aab5a9c757cc0c1edbc13226ef533c.zip
Adds warning message when Instant Play is unsupported
Instant Play needs savestates and savestate resume on startup, and not all cores support those. Better to warn than surprise by not resuming.
Diffstat (limited to 'funkey/fk_instant_play.c')
-rw-r--r--funkey/fk_instant_play.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/funkey/fk_instant_play.c b/funkey/fk_instant_play.c
index aac9091..61e41f4 100644
--- a/funkey/fk_instant_play.c
+++ b/funkey/fk_instant_play.c
@@ -164,6 +164,10 @@ void FK_Resume(void)
void FK_InitInstantPlay(int argc, char **argv)
{
+ const struct core_override *override = get_overrides();
+ if (!state_allowed() || (override && override->prevent_resume))
+ plat_video_set_msg("WARN: No Instant Play support", 3, 4000);
+
prog_name = argv[0];
signal(SIGUSR1, handle_sigusr1);
}