diff --git a/compile_Pregmodders_Compiler.bat b/compile_Pregmodders_Compiler.bat new file mode 100644 index 0000000000000000000000000000000000000000..f858e5e59869e416df45199821d1721fed6ac67c --- /dev/null +++ b/compile_Pregmodders_Compiler.bat @@ -0,0 +1,18 @@ +@echo off +:: Free Cities Basic Compiler - Windows + +:: Will add all *.tw files to StoryIncludes. +del src\config\start.tw +copy src\config\start.tw.proto start.tw.tmp >nul +>>start.tw.tmp (for /r "src" %%F in (*.tw) do echo %%F) +move start.tw.tmp src\config\start.tw >nul + +:: Run the appropriate compiler for the user's CPU architecture. +if %PROCESSOR_ARCHITECTURE% == AMD64 ( + CALL "%~dp0devTools\tweeGo\tweego_win64.exe" -o "%~dp0bin/FC_pregmod.html" "%~dp0src\config\start.tw" +) else ( + CALL "%~dp0devTools\tweeGo\tweego_win86.exe" -o "%~dp0bin/FC_pregmod.html" "%~dp0src\config\start.tw" +) + +del src\config\start.tw +ECHO Done