Prossible MacOS launch fix.

This commit is contained in:
Stanislav Nikitin 2016-10-09 13:15:19 +05:00
parent f793b2f467
commit bbe03c485e
1 changed files with 4 additions and 0 deletions

View File

@ -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