mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 18:32:44 +00:00
Set history path to playlists directory if playlist directory
is non-NULL
This commit is contained in:
parent
89676e8424
commit
c6469c8341
13
settings.c
13
settings.c
@ -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");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user