From 4188eb5b7c459df34fb11c3078d737a90dc56eeb Mon Sep 17 00:00:00 2001 From: neonloop Date: Wed, 25 Jan 2023 07:35:46 +0000 Subject: 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 --- overrides/mame2000.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'overrides') diff --git a/overrides/mame2000.h b/overrides/mame2000.h index 81af3fc..a74da1f 100644 --- a/overrides/mame2000.h +++ b/overrides/mame2000.h @@ -80,5 +80,5 @@ const struct core_override_fast_forward mame2000_fast_forward = { .emu_actions = mame2000_emu_actions, \ .emu_action_size = array_size(mame2000_emu_actions), \ .options = mame2000_core_option_overrides, \ - .block_load_content = 1 \ + .needs_reopen = 1, \ } -- cgit v1.2.3