Skip to content

Commit 504c1fc

Browse files
committed
Auto generate the options file when its missing
1 parent 30c97db commit 504c1fc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

BuildMod.bat

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
@echo off
22
setlocal EnableDelayedExpansion
33
set "args="
4+
if not exist options.txt (
5+
echo includeExtraFiles=ask> OPTIONS.txt
6+
echo rebuildMod=ask>> options.txt
7+
echo combine=ask>> options.txt
8+
echo copy=ask>> options.txt
9+
echo updateMBINCompiler=ask>> options.txt
10+
echo checkForConflicts=ask>> options.txt
11+
echo recreatePakList=ask>> options.txt
12+
echo|set /p="recreateMapFileTrees=ask">> options.txt
13+
)
414
for /f "tokens=1,2 delims==" %%G in (options.txt) do (
515
set "args=!args!-%%G %%~H "
616
)

0 commit comments

Comments
 (0)