Skip to content

Commit 74d1038

Browse files
committed
Merge branch 'master' into new-user-modals
2 parents 17d4cb3 + 35e7fc2 commit 74d1038

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

backend/ficsitcli/wrapper.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package ficsitcli
33
import (
44
"fmt"
55
"log/slog"
6+
"slices"
67
"sync"
78
"time"
89

@@ -45,6 +46,13 @@ func Init() error {
4546
return nil
4647
}
4748

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+
4856
func (f *ficsitCLI) StartGameRunningWatcher() {
4957
gameRunningTicker := time.NewTicker(5 * time.Second)
5058
go func() {
@@ -56,7 +64,7 @@ func (f *ficsitCLI) StartGameRunningWatcher() {
5664
}
5765
f.isGameRunning = false
5866
for _, process := range processes {
59-
if process.Executable() == "FactoryGame-Win64-Shipping.exe" || process.Executable() == "FactoryGame-Win64-Shipping" {
67+
if slices.Contains(executableNames, process.Executable()) {
6068
f.isGameRunning = true
6169
break
6270
}

backend/installfinders/common/types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package common
33
type GameBranch string
44

55
var (
6+
// TODO rename to BranchRelease later https://github.com/satisfactorymodding/SatisfactoryModManager/pull/223#issuecomment-2342831142
67
BranchEarlyAccess GameBranch = "Early Access"
78
BranchExperimental GameBranch = "Experimental"
89
)

cspell.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
"Unignore",
2828
"urql",
2929
"wailsjs",
30-
"wailsjsdir"
30+
"wailsjsdir",
31+
"xsync"
3132
],
3233
// flagWords - list of words to be always considered incorrect
3334
// This is useful for offensive words and common spelling errors.

0 commit comments

Comments
 (0)