Skip to content

Commit 05b7a48

Browse files
authored
Merge pull request #250 from TeamWheelWizard/fix/dolphin-rr-json-access
fix: Also try to fix `RR.json` portal access if folder was changed
2 parents 0942f1e + 2499a98 commit 05b7a48

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

WheelWizard/Services/Launcher/Helpers/DolphinLaunchHelper.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ void AddFilesystemPerm(string newFilesystemPerm, string mode = "")
116116

117117
if (!TryFixFlatpakPortalAccess(PathManager.GameFilePath, "-r"))
118118
AddFilesystemPerm(PathManager.GameFilePath, ":ro");
119-
AddFilesystemPerm(PathManager.RrLaunchJsonFilePath, ":ro");
119+
// We need to provide the directory where the `RR.json` is located in for portal access!
120+
if (!TryFixFlatpakPortalAccess(Path.GetDirectoryName(PathManager.RrLaunchJsonFilePath) ?? "", "-r"))
121+
AddFilesystemPerm(PathManager.RrLaunchJsonFilePath, ":ro");
120122

121123
return fixedFlatpakDolphinLocation;
122124
}

0 commit comments

Comments
 (0)