From 7cd93926c6f1d3e30cf889654319bc0abf97fb48 Mon Sep 17 00:00:00 2001 From: Rob B Date: Tue, 10 Sep 2024 19:26:28 -0400 Subject: [PATCH] fix: add `FactoryGameSteam` and `FactoryGameEGS` rootExecutable and platform (#69) * fix: add `FactoryGameSteam` rootExecutable and platform * fix: add `FactoryGameEGS` rootExecutable and platform --- cli/installations.go | 2 +- cli/platforms.go | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/cli/installations.go b/cli/installations.go index bb3e280..cb65155 100644 --- a/cli/installations.go +++ b/cli/installations.go @@ -183,7 +183,7 @@ func (i *Installations) DeleteInstallation(installPath string) error { return nil } -var rootExecutables = []string{"FactoryGame.exe", "FactoryServer.sh", "FactoryServer.exe"} +var rootExecutables = []string{"FactoryGame.exe", "FactoryServer.sh", "FactoryServer.exe", "FactoryGameSteam.exe", "FactoryGameEGS.exe"} func (i *Installation) Validate(ctx *GlobalContext) error { found := false diff --git a/cli/platforms.go b/cli/platforms.go index 916a8f8..07b84de 100644 --- a/cli/platforms.go +++ b/cli/platforms.go @@ -35,4 +35,15 @@ var platforms = []Platform{ LockfilePath: filepath.Join("FactoryGame", "Mods"), TargetName: "WindowsServer", }, + // 1.0 stuff + { + VersionPath: filepath.Join("Engine", "Binaries", "Win64", "FactoryGameSteam-Win64-Shipping.version"), + LockfilePath: filepath.Join("FactoryGame", "Mods"), + TargetName: "Windows", + }, + { + VersionPath: filepath.Join("Engine", "Binaries", "Win64", "FactoryGameEGS-Win64-Shipping.version"), + LockfilePath: filepath.Join("FactoryGame", "Mods"), + TargetName: "Windows", + }, }