Fix CA1839

This commit is contained in:
RoosterDragon
2023-03-12 16:36:04 +00:00
committed by abcdefg30
parent 25b8e7fefc
commit 8fe82ed976
2 changed files with 4 additions and 1 deletions

View File

@@ -86,7 +86,7 @@ namespace OpenRA.WindowsLauncher
static int RunInnerLauncher(string[] args)
{
var launcherPath = Process.GetCurrentProcess().MainModule.FileName;
var launcherPath = Environment.ProcessPath;
var launcherArgs = args.ToList();
if (!launcherArgs.Any(x => x.StartsWith("Engine.LaunchPath=", StringComparison.Ordinal)))