fix: add FactoryGameSteam and FactoryGameEGS rootExecutable and platform (#69)

* fix: add `FactoryGameSteam` rootExecutable and platform

* fix: add `FactoryGameEGS` rootExecutable and platform
This commit is contained in:
Rob B 2024-09-10 19:26:28 -04:00 committed by GitHub
parent 8acb690014
commit 7cd93926c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 1 deletions

View file

@ -183,7 +183,7 @@ func (i *Installations) DeleteInstallation(installPath string) error {
return nil 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 { func (i *Installation) Validate(ctx *GlobalContext) error {
found := false found := false

View file

@ -35,4 +35,15 @@ var platforms = []Platform{
LockfilePath: filepath.Join("FactoryGame", "Mods"), LockfilePath: filepath.Join("FactoryGame", "Mods"),
TargetName: "WindowsServer", 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",
},
} }