Prossible MacOS launch fix.
This commit is contained in:
parent
f793b2f467
commit
bbe03c485e
@ -15,6 +15,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
|
"runtime"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
@ -69,6 +70,9 @@ func (l *Launcher) Launch(server_profile *datamodels.Server, user_profile *datam
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err.Error())
|
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
|
server_address := server_profile.Ip + ":" + server_profile.Port
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user