This commit is contained in:
twinaphex 2016-08-30 04:20:28 +02:00
parent 9f65d0d4fb
commit dee5ec9e15
1 changed files with 8 additions and 7 deletions

View File

@ -2943,13 +2943,12 @@ bool config_save_file(const char *path)
/* Path settings */ /* Path settings */
for (i = 0; i < path_settings_size; i++) for (i = 0; i < path_settings_size; i++)
{ {
if (path_settings[i].defaults) const char *value = path_settings[i].value;
config_set_path(conf, path_settings[i].ident,
string_is_empty(path_settings[i].value) ? "default" : if (path_settings[i].defaults && string_is_empty(path_settings[i].value))
path_settings[i].value); value = "default";
else
config_set_path(conf, path_settings[i].ident, config_set_path(conf, path_settings[i].ident, value);
path_settings[i].value);
} }
#ifdef HAVE_MENU #ifdef HAVE_MENU
@ -2998,6 +2997,7 @@ bool config_save_file(const char *path)
config_set_bool(conf, bool_settings[i].ident, config_set_bool(conf, bool_settings[i].ident,
*bool_settings[i].ptr); *bool_settings[i].ptr);
} }
#ifdef HAVE_NETWORKGAMEPAD #ifdef HAVE_NETWORKGAMEPAD
for (i = 0; i < MAX_USERS; i++) for (i = 0; i < MAX_USERS; i++)
{ {
@ -3006,6 +3006,7 @@ bool config_save_file(const char *path)
config_set_bool(conf, tmp, settings->network_remote_enable_user[i]); config_set_bool(conf, tmp, settings->network_remote_enable_user[i]);
} }
#endif #endif
if (!retroarch_override_setting_is_set(RARCH_OVERRIDE_SETTING_UPS_PREF)) if (!retroarch_override_setting_is_set(RARCH_OVERRIDE_SETTING_UPS_PREF))
config_set_bool(conf, "ups_pref", global->patch.ups_pref); config_set_bool(conf, "ups_pref", global->patch.ups_pref);
if (!retroarch_override_setting_is_set(RARCH_OVERRIDE_SETTING_BPS_PREF)) if (!retroarch_override_setting_is_set(RARCH_OVERRIDE_SETTING_BPS_PREF))