Skip to content

Commit

Permalink
Merge pull request #30 from diogomartino/28-nosteam-param-being-ignored
Browse files Browse the repository at this point in the history
FIX: launch params being ignored
  • Loading branch information
diogomartino authored Mar 5, 2024
2 parents 7062114 + 7f79cf0 commit 8f5ccae
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions server/server-manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ import (
)

type ServerManager struct {
cmd *exec.Cmd
serverCmd *exec.Cmd
serverPid int
launchParams []string
cmd *exec.Cmd
serverCmd *exec.Cmd
serverPid int
}

func NewServerManager() *ServerManager {
Expand Down Expand Up @@ -106,7 +105,7 @@ func (s *ServerManager) MonitorServerProcess() {
func (s *ServerManager) Start() error {
utils.Log("Starting dedicated server...")

s.serverCmd = exec.Command(utils.Config.ServerExe, s.launchParams...)
s.serverCmd = exec.Command(utils.Config.ServerExe, utils.Settings.General.LaunchParams)
s.serverCmd.Dir = utils.Config.ServerPath
s.serverCmd.Stdout = os.Stdout
s.serverCmd.Stderr = os.Stderr
Expand Down

0 comments on commit 8f5ccae

Please sign in to comment.