Skip to content

Commit

Permalink
Dynamically resolve Bohemia Interactive folder path in AppData
Browse files Browse the repository at this point in the history
  • Loading branch information
valters-tomsons committed May 2, 2024
1 parent 668c7a1 commit b912c9f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ public static void ApplySettingsBandAid(string gamePath)

Common.WriteLine("Proton prefix found!");

var bohemiaPath = $"{prefixPath}/drive_c/users/steamuser/AppData/Local/Bohemia Interactive a.s.";
var appDataLocal = $"{prefixPath}/drive_c/users/steamuser/AppData/Local/";
var bohemiaPath = Directory.GetDirectories(appDataLocal, "Bohemia*Interactive*", SearchOption.TopDirectoryOnly).FirstOrDefault();
if (!Directory.Exists(bohemiaPath))
{
Common.WriteLine($"Failed to find Bohemia settings folder at: '{bohemiaPath}'", ConsoleColor.Red);
Expand Down

0 comments on commit b912c9f

Please sign in to comment.