From 695313806f5d45b1c7680f335d0770b43674839f Mon Sep 17 00:00:00 2001 From: squeek Date: Tue, 31 Mar 2015 13:46:23 -0700 Subject: [PATCH] setup.bat: Write the necessary gameinfo.txt as well --- setup.bat | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/setup.bat b/setup.bat index 8e02f97..5c336c2 100644 --- a/setup.bat +++ b/setup.bat @@ -28,6 +28,8 @@ set Ep1BinDir=%sourcesdk%\bin\ep1\bin set ConfigFile=%Ep1BinDir%\GameConfig.txt set SchemeDir=%Ep1BinDir%\resource set SchemeFile=%SchemeDir%\SourceScheme.res +set GameInfoDir=%GameDir%/sdk +set GameInfoFile=%GameInfoDir%/gameinfo.txt echo( echo Writing "%ConfigFile%"... @@ -65,6 +67,32 @@ echo } ) >"%ConfigFile%" echo -^> Done +IF NOT EXIST "%GameInfoDir%" mkdir "%GameInfoDir%" +echo( +echo Writing "%GameInfoFile%"... +( +echo "GameInfo" +echo { +echo game "Fortress Forever" +echo title "Fortress Forever" +echo name "Fortress Forever" +echo type multiplayer_only +echo( +echo FileSystem +echo { +echo SteamAppId 215 +echo ToolsAppId 211 +echo SearchPaths +echo { +echo Game ^|gameinfo_path^|..\FortressForever +echo Game ^|gameinfo_path^|..\hl2 +echo Game ^|gameinfo_path^|..\platform +echo } +echo } +echo } +) > "%GameInfoFile%" +echo -^> Done + :: Need a SourceScheme.res in bin/ep1/bin/resource so that Hammer doesn't throw :: a 'Failed to load the default scheme file' error :: The contents of this scheme file are unimportant; it can be totally blank