Merge pull request #19289 from hrydgard/fix-remote-disc-streaming-ios

Remote Disc Streaming on iOS: Don't accidentally force the game browser to the local folder
This commit is contained in:
Henrik Rydgård 2024-06-21 16:18:40 +02:00 committed by GitHub
commit e3820752dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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);