Skip to content

Commit a42dca1

Browse files
Fix Proton version detection when using a different default Proton verion (Such as Proton-GE) (SubnauticaNitrox#2727)
1 parent a2e1cdc commit a42dca1

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Nitrox.Model/Platforms/Store/Steam.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,14 @@ static List<string> GetAllLibraryPaths(string steamPath)
445445
{
446446
return appIdMatch.Groups[1].Value;
447447
}
448+
449+
const string defaultPattern = @"""0""[^{]*\{[^}]*""name""\s*""([^""]+)""";
450+
Match defaultMatch = Regex.Match(compatToolMapping, defaultPattern);
451+
452+
if (defaultMatch.Success)
453+
{
454+
return defaultMatch.Groups[1].Value;
455+
}
448456
}
449457

450458
return null;

0 commit comments

Comments
 (0)