From 8f8460c639e424cb7778d89f5345d704a9866533 Mon Sep 17 00:00:00 2001 From: Rob B Date: Tue, 10 Sep 2024 19:20:18 -0400 Subject: [PATCH] add `FactoryGameSteam` and `FactoryGameEGS` install types --- backend/installfinders/common/gameinfo.go | 11 +++++++++++ build/windows/installer/project.nsi | 2 ++ 2 files changed, 13 insertions(+) diff --git a/backend/installfinders/common/gameinfo.go b/backend/installfinders/common/gameinfo.go index 3fdae109..0b18a290 100644 --- a/backend/installfinders/common/gameinfo.go +++ b/backend/installfinders/common/gameinfo.go @@ -41,6 +41,17 @@ var gameInfo = []installType{ versionPath: filepath.Join("Engine", "Binaries", "Win64", "FactoryServer-Win64-Shipping.version"), installType: InstallTypeWindowsServer, }, + // Update 1.0 stuff + { + executable: "FactoryGameSteam.exe", + versionPath: filepath.Join("Engine", "Binaries", "Win64", "FactoryGameSteam-Win64-Shipping.version"), + installType: InstallTypeWindowsClient, + }, + { + executable: "FactoryGameEGS.exe", + versionPath: filepath.Join("Engine", "Binaries", "Win64", "FactoryGameEGS-Win64-Shipping.version"), + installType: InstallTypeWindowsClient, + }, } type GameVersionFile struct { diff --git a/build/windows/installer/project.nsi b/build/windows/installer/project.nsi index 33f67a49..9312f275 100644 --- a/build/windows/installer/project.nsi +++ b/build/windows/installer/project.nsi @@ -253,6 +253,8 @@ Function .onVerifyInstDir Check: IfFileExists $currentDir\FactoryGame.exe GameExists + IfFileExists $currentDir\FactoryGameSteam.exe GameExists + IfFileExists $currentDir\FactoryGameEGS.exe GameExists IfFileExists $currentDir\FactoryServer.exe GameExists IfFileExists $currentDir\FactoryServer.sh GameExists ${GetParent} $currentDir $currentDir