Skip to content

Commit

Permalink
Fix Steam Error
Browse files Browse the repository at this point in the history
  • Loading branch information
leohubert authored Apr 6, 2018
1 parent dc468c2 commit ea15cc8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions LauncherArma3/LauncherArma3/Arma3/launcherMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1380,24 +1380,24 @@ private async void startArma()
if (launchOptions == null || launchOptions.Length == 0)
{
if (serverPass == null)
Process.Start(armaDirectory + "/arma3battleye.exe", "0 1 -mod=" + modsPackName + " -nopause -connect=" + serverArmaIp);
Process.Start("steam://run/107410//-nolauncher -mod=" + modsPackName + " -nopause -connect=" + serverArmaIp);
else
Process.Start(armaDirectory + "/arma3battleye.exe", "0 1 -mod=" + modsPackName + " -nopause -connect=" + serverArmaIp + " -password=" + serverPass);
Process.Start("steam://run/107410//-nolauncher -mod=" + modsPackName + " -nopause -connect=" + serverArmaIp + " -password=" + serverPass);
}
else
{
if (serverPass == null)
Process.Start(armaDirectory + "/arma3battleye.exe", "0 1 -mod=" + modsPackName + " -nopause -connect=" + serverArmaIp + " " + launchOptions);
Process.Start("steam://run/107410//-nolauncher -mod=" + modsPackName + " -nopause -connect=" + serverArmaIp + " " + launchOptions);
else
Process.Start(armaDirectory + "/arma3battleye.exe", "0 1 -mod=" + modsPackName + " -nopause -connect=" + serverArmaIp + " -password=" + serverPass + " " + launchOptions);
Process.Start("steam://run/107410//-nolauncher -mod=" + modsPackName + " -nopause -connect=" + serverArmaIp + " -password=" + serverPass + " " + launchOptions);
}
}
else
{
if (launchOptions == null || launchOptions.Length == 0)
Process.Start(armaDirectory + "/arma3battleye.exe", "0 1 -mod=" + modsPackName + " -nopause -connect=" + serverArmaIp + " -password=" + serverLockPass);
Process.Start("steam://run/107410//-nolauncher -mod=" + modsPackName + " -nopause -connect=" + serverArmaIp + " -password=" + serverLockPass);
else
Process.Start(armaDirectory + "/arma3battleye.exe", "0 1 -mod=" + modsPackName + " -nopause -connect=" + serverArmaIp + " -password=" + serverLockPass + " " + launchOptions);
Process.Start("steam://run/107410//-nolauncher -mod=" + modsPackName + " -nopause -connect=" + serverArmaIp + " -password=" + serverLockPass + " " + launchOptions);
}

await Task.Delay(17000);
Expand Down

0 comments on commit ea15cc8

Please sign in to comment.