Cleanup config_unload_override

This commit is contained in:
twinaphex 2016-12-15 12:07:02 +01:00
parent cf6d6c584e
commit a82492a681
1 changed files with 7 additions and 9 deletions

View File

@ -2349,8 +2349,9 @@ bool config_unload_override(void)
retroarch_override_setting_unset(RARCH_OVERRIDE_SETTING_STATE_PATH, NULL);
retroarch_override_setting_unset(RARCH_OVERRIDE_SETTING_SAVE_PATH, NULL);
if (config_load_file(path_get(RARCH_PATH_CONFIG), false, config_get_ptr()))
{
if (!config_load_file(path_get(RARCH_PATH_CONFIG), false, config_get_ptr()))
return false;
RARCH_LOG("[overrides] configuration overrides unloaded, original configuration restored.\n");
/* Reset save paths */
@ -2358,9 +2359,6 @@ bool config_unload_override(void)
retroarch_override_setting_set(RARCH_OVERRIDE_SETTING_SAVE_PATH, NULL);
return true;
}
return false;
}
/**