diff options
author | neonloop | 2023-01-25 07:35:46 +0000 |
---|---|---|
committer | neonloop | 2023-01-25 07:35:46 +0000 |
commit | 4188eb5b7c459df34fb11c3078d737a90dc56eeb (patch) | |
tree | 72f7c0d4341d39adc7b173eb116f591a29df4723 /funkey/fk_instant_play.h | |
parent | b90dbbdc967878dc461fefe78a8ef86886ae7a5a (diff) | |
download | picoarch-4188eb5b7c459df34fb11c3078d737a90dc56eeb.tar.gz picoarch-4188eb5b7c459df34fb11c3078d737a90dc56eeb.tar.bz2 picoarch-4188eb5b7c459df34fb11c3078d737a90dc56eeb.zip |
Fixes load new content
Cores do not always clean up on unload content, deinit and reinit is
more reliable.
Some cores do not even clean up on deinit and reinit, need all statics
reinitialized. On many platforms dlclose / dlopen will work. FunKey
uses musl libc where dlclose is no-op, so instead will exec again with
current core and new content path.
Overrides decide whether easy or hard clean up is needed. Assume
unknown cores need hard cleanup, otherwise specified by "needs_reopen"
override.
Also
- FunKey will now autosave and resume during load new content
- Load new content deferred until after menu responds to keypress,
otherwise key release can be missed and menu seems stuck
Diffstat (limited to 'funkey/fk_instant_play.h')
-rw-r--r-- | funkey/fk_instant_play.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/funkey/fk_instant_play.h b/funkey/fk_instant_play.h index 5185065..2ed3c71 100644 --- a/funkey/fk_instant_play.h +++ b/funkey/fk_instant_play.h @@ -39,8 +39,12 @@ extern "C" { #include <signal.h> #define AUTOSAVE_SLOT 99 +extern int instant_play; extern void FK_InitInstantPlay(int argc, char **argv); +extern void FK_LoadNewGame(const char *fname); +extern void FK_Autosave(void); +extern void FK_Resume(void); extern void FK_Suspend(void); /* Ends C function definitions when using C++ */ |