mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-14 23:10:33 +02:00
iOS: Show paths in the app's container as ~/...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
bfdf532965
commit
b58dd17c2e
1 file changed
+2
-1
@@ -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))) {
|
||||
|
||||
Reference in new issue
Block a user