mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 00:20:01 +00:00
same as the previous commit but when the user exits without unloading content
This commit is contained in:
parent
06f656004b
commit
48068f147a
@ -547,6 +547,7 @@ static void event_deinit_core(bool reinit)
|
||||
if(settings->sort_savestates_enable)
|
||||
strlcpy(global->savestate_dir,orig_savestate_dir,sizeof(global->savestate_dir));
|
||||
|
||||
/* restore system directory if it was set to <content dir> */
|
||||
if(orig_system_dir_empty)
|
||||
strlcpy(settings->system_directory,"",sizeof(settings->system_directory));
|
||||
|
||||
|
@ -47,6 +47,10 @@ void main_exit_save_config(void)
|
||||
if (settings->sort_savestates_enable && orig_savestate_dir[0] != '\0')
|
||||
strlcpy(global->savestate_dir,orig_savestate_dir,sizeof(global->savestate_dir));
|
||||
|
||||
/* restore system directory if it was set to <content dir> */
|
||||
if(orig_system_dir_empty)
|
||||
strlcpy(settings->system_directory,"",sizeof(settings->system_directory));
|
||||
|
||||
/* Save last core-specific config to the default config location,
|
||||
* needed on consoles for core switching and reusing last good
|
||||
* config for new cores.
|
||||
|
Loading…
Reference in New Issue
Block a user