From 650d01ac57aab5a9c757cc0c1edbc13226ef533c Mon Sep 17 00:00:00 2001 From: neonloop Date: Wed, 1 Feb 2023 16:29:49 +0000 Subject: 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. --- funkey/fk_instant_play.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'funkey') 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); } -- cgit v1.2.3