Skip to content

Commit

Permalink
fix: add FactoryGameSteam and FactoryGameEGS rootExecutable and p…
Browse files Browse the repository at this point in the history
…latform (#69)

* fix: add `FactoryGameSteam` rootExecutable and platform

* fix: add `FactoryGameEGS` rootExecutable and platform
  • Loading branch information
budak7273 authored Sep 10, 2024
1 parent 8acb690 commit 7cd9392
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cli/installations.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions cli/platforms.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
}

0 comments on commit 7cd9392

Please sign in to comment.