Skip to content

Commit

Permalink
feat: impl XL_PLATFORM for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Blooym authored Nov 28, 2024
1 parent 19c603d commit 1d410b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/XIVLauncher.Common.Windows/WindowsGameRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public Process Start(string path, string workingDirectory, string arguments, IDi
_ => throw new ArgumentOutOfRangeException()
};
environment.Add("__COMPAT_LAYER", compat);
environment.Add("XL_PLATFORM", "Windows");

var prevDalamudRuntime = Environment.GetEnvironmentVariable("DALAMUD_RUNTIME");
if (string.IsNullOrWhiteSpace(prevDalamudRuntime))
Expand All @@ -44,4 +45,4 @@ public Process Start(string path, string workingDirectory, string arguments, IDi
return NativeAclFix.LaunchGame(workingDirectory, path, arguments, environment, dpiAwareness, process => { });
}
}
}
}

0 comments on commit 1d410b2

Please sign in to comment.