same as the previous commit but when the user exits without unloading content

This commit is contained in:
radius 2015-07-12 02:32:00 -05:00
parent 06f656004b
commit 48068f147a
2 changed files with 5 additions and 0 deletions

View File

@ -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));

View File

@ -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.