Remote Disc Streaming on iOS: Don't accidentally force the game browser to local

On iOS we enforce browsing the app directory only due to permission issues, but this
should not apply when opening a HTTPS URL. Oops.
This commit is contained in:
Henrik Rydgård committed 2024-06-21 15:02:08 +02:00
1 parent cbdb2a37eb
commit 30a822caa4
1 file changed
+3 -1
+3 -1
View File
@@ -519,7 +519,9 @@ GameBrowser::GameBrowser(int token, const Path &path, BrowseFlags browseFlags, b
} else {
path_.SetRootAlias("ms:/", memstickRoot);
}
if (System_GetPropertyBool(SYSPROP_LIMITED_FILE_BROWSING)) {
if (System_GetPropertyBool(SYSPROP_LIMITED_FILE_BROWSING) &&
(path.Type() == PathType::NATIVE || path.Type() == PathType::CONTENT_URI)) {
// Note: We don't restrict if the path is HTTPS, otherwise remote disc streaming breaks!
path_.RestrictToRoot(GetSysDirectory(DIRECTORY_MEMSTICK_ROOT));
}
path_.SetPath(path);