mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 07:13:35 +00:00
iOS/tvOS: Fix escaping the sandbox for jailbroken devices
This commit is contained in:
parent
eb3adeaf87
commit
8479d83a99
@ -1479,14 +1479,27 @@ int generic_action_ok_displaylist_push(
|
|||||||
parent_dir[0] = '\0';
|
parent_dir[0] = '\0';
|
||||||
|
|
||||||
if (path && menu_path)
|
if (path && menu_path)
|
||||||
|
{
|
||||||
|
#if IOS
|
||||||
|
fill_pathname_expand_special(parent_dir, menu_path, sizeof(parent_dir));
|
||||||
|
fill_pathname_join_special(tmp,
|
||||||
|
parent_dir, path, sizeof(tmp));
|
||||||
|
#else
|
||||||
fill_pathname_join_special(tmp,
|
fill_pathname_join_special(tmp,
|
||||||
menu_path, path, sizeof(tmp));
|
menu_path, path, sizeof(tmp));
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
fill_pathname_parent_dir(parent_dir,
|
fill_pathname_parent_dir(parent_dir,
|
||||||
tmp, sizeof(parent_dir));
|
tmp, sizeof(parent_dir));
|
||||||
fill_pathname_parent_dir(parent_dir,
|
fill_pathname_parent_dir(parent_dir,
|
||||||
parent_dir, sizeof(parent_dir));
|
parent_dir, sizeof(parent_dir));
|
||||||
|
|
||||||
|
#if IOS
|
||||||
|
fill_pathname_abbreviate_special(tmp, parent_dir, sizeof(tmp));
|
||||||
|
strlcpy(parent_dir, tmp, sizeof(parent_dir));
|
||||||
|
#endif
|
||||||
|
|
||||||
info.type = type;
|
info.type = type;
|
||||||
info.directory_ptr = idx;
|
info.directory_ptr = idx;
|
||||||
info_path = parent_dir;
|
info_path = parent_dir;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user