File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package ficsitcli
3
3
import (
4
4
"fmt"
5
5
"log/slog"
6
+ "slices"
6
7
"sync"
7
8
"time"
8
9
@@ -45,6 +46,13 @@ func Init() error {
45
46
return nil
46
47
}
47
48
49
+ // With and without `.exe` variants in case it is missing on Linux
50
+ var executableNames = []string {
51
+ "FactoryGame-Win64-Shipping.exe" , "FactoryGame-Win64-Shipping" ,
52
+ "FactoryGameSteam-Win64-Shipping.exe" , "FactoryGameSteam-Win64-Shipping" ,
53
+ "FactoryGameEGS-Win64-Shipping.exe" , "FactoryGameEGS-Win64-Shipping" ,
54
+ }
55
+
48
56
func (f * ficsitCLI ) StartGameRunningWatcher () {
49
57
gameRunningTicker := time .NewTicker (5 * time .Second )
50
58
go func () {
@@ -56,7 +64,7 @@ func (f *ficsitCLI) StartGameRunningWatcher() {
56
64
}
57
65
f .isGameRunning = false
58
66
for _ , process := range processes {
59
- if process . Executable () == "FactoryGame-Win64-Shipping.exe" || process .Executable () == "FactoryGame-Win64-Shipping" {
67
+ if slices . Contains ( executableNames , process .Executable ()) {
60
68
f .isGameRunning = true
61
69
break
62
70
}
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package common
3
3
type GameBranch string
4
4
5
5
var (
6
+ // TODO rename to BranchRelease later https://github.com/satisfactorymodding/SatisfactoryModManager/pull/223#issuecomment-2342831142
6
7
BranchEarlyAccess GameBranch = "Early Access"
7
8
BranchExperimental GameBranch = "Experimental"
8
9
)
Original file line number Diff line number Diff line change 27
27
" Unignore" ,
28
28
" urql" ,
29
29
" wailsjs" ,
30
- " wailsjsdir"
30
+ " wailsjsdir" ,
31
+ " xsync"
31
32
],
32
33
// flagWords - list of words to be always considered incorrect
33
34
// This is useful for offensive words and common spelling errors.
You can’t perform that action at this time.
0 commit comments