Skip to content

Commit

Permalink
Tried to fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Belonit committed Aug 23, 2023
1 parent 68d3d98 commit ebe3d64
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions ClientGUI/XNAExecuteButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,12 @@ protected override void ParseControlINIAttribute(IniFile iniFile, string key, st
public override void OnLeftClick()
{
OSVersion osVersion = ClientConfiguration.Instance.GetOperatingSystemVersion();
using var process = new Process();

if (osVersion != OSVersion.UNIX)
process.StartInfo.FileName = SafePath.CombineFilePath(ProgramConstants.GamePath, Execute);
else
process.StartInfo.FileName = SafePath.CombineFilePath(ProgramConstants.GamePath, UnixExecute);

process.Start();
ProcessLauncher.StartShellProcess(
(osVersion != OSVersion.UNIX)
? Execute
: UnixExecute
);

base.OnLeftClick();
}
Expand Down

0 comments on commit ebe3d64

Please sign in to comment.