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