From bbe03c485ec561887d208d61975c5d30ab92121a Mon Sep 17 00:00:00 2001 From: pztrn Date: Sun, 9 Oct 2016 13:15:19 +0500 Subject: [PATCH] Prossible MacOS launch fix. --- launcher/launcher_object.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/launcher/launcher_object.go b/launcher/launcher_object.go index f9db1af..dc65f9f 100644 --- a/launcher/launcher_object.go +++ b/launcher/launcher_object.go @@ -15,6 +15,7 @@ import ( "fmt" "os" "os/exec" + "runtime" "strconv" "strings" @@ -69,6 +70,9 @@ func (l *Launcher) Launch(server_profile *datamodels.Server, user_profile *datam if err != nil { fmt.Println(err.Error()) } + if runtime.GOOS == "darwin" { + launch_bin = launch_bin + "/Contents/MacOS/Quake3-UrT.x86_64" + } server_address := server_profile.Ip + ":" + server_profile.Port