fix system dir resetting on each startup
This commit is contained in:
parent
450c665619
commit
a06dd9c3a2
5 changed files with 13 additions and 7 deletions
|
@ -38,6 +38,7 @@ void main_exit_save_config(void)
|
|||
{
|
||||
settings_t *settings = config_get_ptr();
|
||||
global_t *global = global_get_ptr();
|
||||
rarch_system_info_t *info = rarch_system_info_get_ptr();
|
||||
|
||||
if (settings->config_save_on_exit && *global->config_path)
|
||||
{
|
||||
|
@ -48,7 +49,7 @@ void main_exit_save_config(void)
|
|||
strlcpy(global->savestate_dir,orig_savestate_dir,sizeof(global->savestate_dir));
|
||||
|
||||
/* restore system directory if it was set to <content dir> */
|
||||
if(settings->system_in_content_dir)
|
||||
if(settings->system_in_content_dir && !strcmp(info->info.library_name,"No Core"))
|
||||
settings->system_directory[0] = '\0';
|
||||
|
||||
/* Save last core-specific config to the default config location,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue