mirror of
https://github.com/libretro/RetroArch
synced 2025-03-31 10:20:41 +00:00
Use fill_pathname_join when out and dir overlap
This commit is contained in:
parent
9d939a35d6
commit
ef551478d3
@ -753,7 +753,7 @@ void retroarch_path_set_redirect(settings_t *settings)
|
|||||||
|
|
||||||
/* Append library_name to the save location */
|
/* Append library_name to the save location */
|
||||||
if (sort_savefiles_enable)
|
if (sort_savefiles_enable)
|
||||||
fill_pathname_join_special(
|
fill_pathname_join(
|
||||||
new_savefile_dir,
|
new_savefile_dir,
|
||||||
new_savefile_dir,
|
new_savefile_dir,
|
||||||
system->library_name,
|
system->library_name,
|
||||||
@ -787,7 +787,7 @@ void retroarch_path_set_redirect(settings_t *settings)
|
|||||||
/* Append library_name to the savestate location */
|
/* Append library_name to the savestate location */
|
||||||
if (sort_savestates_enable)
|
if (sort_savestates_enable)
|
||||||
{
|
{
|
||||||
fill_pathname_join_special(
|
fill_pathname_join(
|
||||||
new_savestate_dir,
|
new_savestate_dir,
|
||||||
new_savestate_dir,
|
new_savestate_dir,
|
||||||
system->library_name,
|
system->library_name,
|
||||||
@ -843,7 +843,7 @@ void retroarch_path_set_redirect(settings_t *settings)
|
|||||||
if (netplay_driver_ctl(RARCH_NETPLAY_CTL_IS_ENABLED, NULL) &&
|
if (netplay_driver_ctl(RARCH_NETPLAY_CTL_IS_ENABLED, NULL) &&
|
||||||
!netplay_driver_ctl(RARCH_NETPLAY_CTL_IS_SERVER, NULL))
|
!netplay_driver_ctl(RARCH_NETPLAY_CTL_IS_SERVER, NULL))
|
||||||
{
|
{
|
||||||
fill_pathname_join_special(new_savefile_dir, new_savefile_dir, ".netplay",
|
fill_pathname_join(new_savefile_dir, new_savefile_dir, ".netplay",
|
||||||
sizeof(new_savefile_dir));
|
sizeof(new_savefile_dir));
|
||||||
|
|
||||||
if (!path_is_directory(new_savefile_dir) &&
|
if (!path_is_directory(new_savefile_dir) &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user