From 7b1c2e521c5653802a2c879effccbd9dcd06b546 Mon Sep 17 00:00:00 2001
From: Pregmodder <pregmodder@gmail.com>
Date: Wed, 30 Aug 2017 20:30:06 -0400
Subject: [PATCH] My version of the compiler

---
 compile_Pregmodders_Compiler.bat | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 compile_Pregmodders_Compiler.bat

diff --git a/compile_Pregmodders_Compiler.bat b/compile_Pregmodders_Compiler.bat
new file mode 100644
index 00000000000..f858e5e5986
--- /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
-- 
GitLab