MakeQSP.bat 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. @ECHO off
  2. :: Set those lines to fit your setup.
  3. :: This is where glife.qsp will be copied. If you don't want to move it just comment (::) the line below.
  4. set CP_TO=..\GL_ECV
  5. :: The file that will be generated or open
  6. set QSPFILE=glife.qsp
  7. :: This is the program used to open glife.qsp. If you comment this line windows will launch the default app to open glife.qsp
  8. set QSPGUI=..\QSP\qspgui.exe
  9. set QGEN=..\QSP\QGen5\QGen.exe
  10. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  11. :menu
  12. cls
  13. echo.
  14. echo -- QSP Compiler and Launcher --
  15. echo.
  16. echo (B)uild (R)un (F)ull (Q)Gen (E)xit
  17. echo.
  18. set /p action=Choose an action:
  19. if %action% == b goto build
  20. if %action% == r goto run
  21. if %action% == f goto build
  22. if %action% == q goto qgen
  23. if %action% == e goto exit
  24. :build
  25. echo.
  26. echo Building ...
  27. @ECHO ON
  28. python -3 txtmerge.py locations glife.txt
  29. txt2gam.exe glife.txt %QSPFILE% > nul
  30. @ECHO OFF
  31. echo.
  32. if defined CP_TO (echo Copying %QSPFILE% to "%CP_TO%" ... & copy %QSPFILE% %CP_TO% )
  33. echo.
  34. echo Done.
  35. if %action% == f goto run
  36. pause
  37. goto menu
  38. :qgen
  39. echo.
  40. echo Running ...
  41. if defined CP_TO (start %QGEN% %CP_TO%\%QSPFILE% ) else (start %QGEN% %QSPFILE% )
  42. goto exit
  43. :run
  44. echo.
  45. echo Running ...
  46. if defined CP_TO (start %QSPGUI% %CP_TO%\%QSPFILE% ) else (start %QSPGUI% %QSPFILE% )
  47. :exit