aboutsummaryrefslogtreecommitdiff
path: root/core.c
diff options
context:
space:
mode:
authorneonloop2021-08-28 17:11:29 +0000
committerneonloop2021-08-28 17:11:29 +0000
commitaa7a05f54990d7f1c4733885424303533421ade8 (patch)
treee5ca3240ec50ce84930f4596174e00266dcc4a7a /core.c
parentff09bde3b0ba9de1068f29b9d0dc2f9f437cae88 (diff)
downloadpicoarch-aa7a05f54990d7f1c4733885424303533421ade8.tar.gz
picoarch-aa7a05f54990d7f1c4733885424303533421ade8.tar.bz2
picoarch-aa7a05f54990d7f1c4733885424303533421ade8.zip
Fixes config override detection after loading new game
Diffstat (limited to 'core.c')
-rw-r--r--core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/core.c b/core.c
index 1a92c28..500145b 100644
--- a/core.c
+++ b/core.c
@@ -710,6 +710,8 @@ finish:
}
void core_unload_content(void) {
+ sram_write();
+
current_core.retro_unload_game();
if (temp_rom[0]) {
remove(temp_rom);
@@ -729,7 +731,6 @@ void core_unload(void) {
PA_INFO("Unloading core...\n");
if (current_core.initialized) {
- sram_write();
core_unload_content();
current_core.retro_deinit();
current_core.initialized = false;