mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 17:43:02 +00:00
iOS/tvOS: Fix more places where paths weren't expanded correctly (#17265)
This commit is contained in:
parent
b0114d4316
commit
a4b478524a
@ -1000,7 +1000,12 @@ int generic_action_ok_displaylist_push(
|
|||||||
case ACTION_OK_DL_OPEN_ARCHIVE_DETECT_CORE:
|
case ACTION_OK_DL_OPEN_ARCHIVE_DETECT_CORE:
|
||||||
if (menu)
|
if (menu)
|
||||||
{
|
{
|
||||||
|
#if IOS
|
||||||
|
fill_pathname_expand_special(tmp, menu->scratch2_buf, sizeof(tmp));
|
||||||
|
menu_path = tmp;
|
||||||
|
#else
|
||||||
menu_path = menu->scratch2_buf;
|
menu_path = menu->scratch2_buf;
|
||||||
|
#endif
|
||||||
content_path = menu->scratch_buf;
|
content_path = menu->scratch_buf;
|
||||||
}
|
}
|
||||||
if (content_path)
|
if (content_path)
|
||||||
@ -2008,8 +2013,16 @@ static int file_load_with_detect_core_wrapper(
|
|||||||
if (path_is_absolute(menu->scratch_buf))
|
if (path_is_absolute(menu->scratch_buf))
|
||||||
strlcpy(menu_path_new, menu->scratch_buf, sizeof(menu_path_new));
|
strlcpy(menu_path_new, menu->scratch_buf, sizeof(menu_path_new));
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
#if IOS
|
||||||
|
fill_pathname_join_special(tmp_path,
|
||||||
|
menu->scratch2_buf, menu->scratch_buf, sizeof(tmp_path));
|
||||||
|
fill_pathname_expand_special(menu_path_new, tmp_path, sizeof(menu_path_new));
|
||||||
|
#else
|
||||||
fill_pathname_join_special(menu_path_new,
|
fill_pathname_join_special(menu_path_new,
|
||||||
menu->scratch2_buf, menu->scratch_buf, sizeof(menu_path_new));
|
menu->scratch2_buf, menu->scratch_buf, sizeof(menu_path_new));
|
||||||
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (string_is_equal(menu_label,
|
else if (string_is_equal(menu_label,
|
||||||
msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_ARCHIVE_OPEN)))
|
msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_ARCHIVE_OPEN)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user