Set history path to playlists directory if playlist directory

is non-NULL
This commit is contained in:
twinaphex 2014-09-15 04:20:45 +02:00
parent 89676e8424
commit c6469c8341

View File

@ -1132,9 +1132,16 @@ 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");
fill_pathname_resolve_relative(g_settings.content_history_path,
g_extern.config_path, "retroarch-content-history.txt",
sizeof(g_settings.content_history_path));
if (g_settings.playlist_directory[0] != '\0')
fill_pathname_join(g_settings.content_history_path,
g_settings.playlist_directory,
"retroarch-content-history.txt",
sizeof(g_settings.content_history_path));
else
fill_pathname_resolve_relative(g_settings.content_history_path,
g_extern.config_path, "retroarch-content-history.txt",
sizeof(g_settings.content_history_path));
CONFIG_GET_PATH(content_history_path, "game_history_path");
CONFIG_GET_INT(content_history_size, "game_history_size");