diff --git a/settings.c b/settings.c index f7bf23cee8..e86d41d281 100644 --- a/settings.c +++ b/settings.c @@ -510,8 +510,6 @@ void config_set_defaults(void) if (*g_defaults.config_path) fill_pathname_expand_special(g_extern.config_path, g_defaults.config_path, sizeof(g_extern.config_path)); - fill_pathname_resolve_relative(g_settings.content_history_path, g_extern.config_path, ".retroarch-game-history.txt", sizeof(g_settings.content_history_path)); - g_extern.config_save_on_exit = config_save_on_exit; /* Avoid reloading config on every ROM load */ @@ -1083,8 +1081,8 @@ bool config_load_file(const char *path, bool set_defaults) CONFIG_GET_INT(network_cmd_port, "network_cmd_port"); CONFIG_GET_BOOL(stdin_cmd_enable, "stdin_cmd_enable"); - if (config_get_path(conf, "game_history_path", tmp_str, sizeof(tmp_str))) - strlcpy(g_settings.content_history_path, tmp_str, sizeof(g_settings.content_history_path)); + fill_pathname_resolve_relative(g_settings.content_history_path, g_extern.config_path, ".retroarch-game-history.txt", sizeof(g_settings.content_history_path)); + CONFIG_GET_PATH(content_history_path, "game_history_path"); CONFIG_GET_INT(game_history_size, "game_history_size"); CONFIG_GET_INT(input.turbo_period, "input_turbo_period");