iOS: Show paths in the app's container as ~/...

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Henrik RydgårdandClaude Opus 5.5 committed 2026-10-13 01:52:48 +02:00
1 parent bfdf532965
commit b58dd17c2e
1 file changed
+2 -1
+2 -1
View File
@@ -268,7 +268,8 @@ std::string GetFriendlyPath(Path path, const Path &rootMatch, std::string_view r
}
}
#if !PPSSPP_PLATFORM(ANDROID) && (PPSSPP_PLATFORM(LINUX) || PPSSPP_PLATFORM(MAC))
// On iOS and tvOS, HOME is the app's container.
#if !PPSSPP_PLATFORM(ANDROID) && (PPSSPP_PLATFORM(LINUX) || PPSSPP_PLATFORM(MAC) || PPSSPP_PLATFORM(IOS))
std::string str = path.ToString();
char *home = getenv("HOME");
if (home != nullptr && !strncmp(str.c_str(), home, strlen(home))) {