Skip to content

Commit

Permalink
Update launch interface
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmacdonald committed Apr 20, 2024
1 parent 1378c41 commit 134ec03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion platform/platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var (
type Platform interface {
DefaultSteamRoot() string
DefaultTF2Root() string
LaunchTF2(steamRoot string, args []string) error
LaunchTF2(steamRoot string, args ...string) error
OpenFolder(dir string) error
IsGameRunning() (bool, error)
Icon() []byte
Expand Down
2 changes: 1 addition & 1 deletion process_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (p *processState) launchGame(settingsMgr *settingsManager) {
// }
// }

if errLaunch := p.platform.LaunchTF2(settings.TF2Dir, args); errLaunch != nil {
if errLaunch := p.platform.LaunchTF2(settings.TF2Dir, args...); errLaunch != nil {
slog.Error("Failed to launch game", errAttr(errLaunch))
} else {
p.gameHasStartedOnce.Store(true)
Expand Down

0 comments on commit 134ec03

Please sign in to comment.