mirror of
https://github.com/fortressforever/fortressforever-maps.git
synced 2024-11-25 13:51:54 +00:00
setup.bat: Write the necessary gameinfo.txt as well
This commit is contained in:
parent
c9f1628262
commit
695313806f
1 changed files with 28 additions and 0 deletions
28
setup.bat
28
setup.bat
|
@ -28,6 +28,8 @@ set Ep1BinDir=%sourcesdk%\bin\ep1\bin
|
||||||
set ConfigFile=%Ep1BinDir%\GameConfig.txt
|
set ConfigFile=%Ep1BinDir%\GameConfig.txt
|
||||||
set SchemeDir=%Ep1BinDir%\resource
|
set SchemeDir=%Ep1BinDir%\resource
|
||||||
set SchemeFile=%SchemeDir%\SourceScheme.res
|
set SchemeFile=%SchemeDir%\SourceScheme.res
|
||||||
|
set GameInfoDir=%GameDir%/sdk
|
||||||
|
set GameInfoFile=%GameInfoDir%/gameinfo.txt
|
||||||
|
|
||||||
echo(
|
echo(
|
||||||
echo Writing "%ConfigFile%"...
|
echo Writing "%ConfigFile%"...
|
||||||
|
@ -65,6 +67,32 @@ echo }
|
||||||
) >"%ConfigFile%"
|
) >"%ConfigFile%"
|
||||||
echo -^> Done
|
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
|
:: Need a SourceScheme.res in bin/ep1/bin/resource so that Hammer doesn't throw
|
||||||
:: a 'Failed to load the default scheme file' error
|
:: a 'Failed to load the default scheme file' error
|
||||||
:: The contents of this scheme file are unimportant; it can be totally blank
|
:: The contents of this scheme file are unimportant; it can be totally blank
|
||||||
|
|
Loading…
Reference in a new issue