Skip to content

Commit

Permalink
Apply suggestion from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
budak7273 committed Sep 12, 2024
1 parent b3e38e1 commit b23181a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion backend/ficsitcli/wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ func Init() error {
return nil
}

var executableNames = []string{"FactoryGame-Win64-Shipping.exe", "FactoryGame-Win64-Shipping", "FactoryGameSteam-Win64-Shipping", "FactoryGameEGS-Win64-Shipping"}
// With and without `.exe` variants in case it is missing on Linux
var executableNames = []string{
"FactoryGame-Win64-Shipping.exe", "FactoryGame-Win64-Shipping",
"FactoryGameSteam-Win64-Shipping.exe", "FactoryGameSteam-Win64-Shipping",
"FactoryGameEGS-Win64-Shipping.exe", "FactoryGameEGS-Win64-Shipping",
}

func (f *ficsitCLI) StartGameRunningWatcher() {
gameRunningTicker := time.NewTicker(5 * time.Second)
Expand Down

0 comments on commit b23181a

Please sign in to comment.