Răsfoiți Sursa

:recycle: improve MakeQSP and remove MakeAndRun_QSP

mjsmagalhaes 8 ani în urmă
părinte
comite
4a60dfee0f
2 a modificat fișierele cu 42 adăugiri și 8 ștergeri
  1. 0 6
      MakeAndRun_QSP.bat
  2. 42 2
      MakeQSP.bat

+ 0 - 6
MakeAndRun_QSP.bat

@@ -1,6 +0,0 @@
-:: if you dont want to copy the glife.qsp anywhere just comment out (::) the cp glife.qsp ..\GL_ECV
-
-python -3 txtmerge.py locations glife.txt
-txt2gam.exe glife.txt glife.qsp
-cp glife.qsp ..\GL_ECV
-..\QSP\qspgui.exe ..\GL_ECV\glife.qsp

+ 42 - 2
MakeQSP.bat

@@ -1,5 +1,45 @@
-:: if you dont want to copy the glife.qsp anywhere just comment out (::) the last command.
+@ECHO off
 
+set CP_TO=..\GL_ECV
+set QSPGUI=..\QSP\qspgui.exe
+
+:menu
+cls
+echo.
+echo -- QSP Compiler and Launcher --
+echo.
+echo (b)uild  (r)un  (f)ull  (q)uit
+echo.
+set /p action=Choose an action:
+
+if %action% == b goto build
+if %action% == r goto run
+if %action% == f goto build
+if %action% == q goto exit
+
+:build
+echo.
+echo Building ...
+
+@ECHO ON
 python -3 txtmerge.py locations glife.txt
 txt2gam.exe glife.txt glife.qsp
-cp glife.qsp ..\GL_ECV
+cp glife.qsp %CP_TO%
+@ECHO OFF
+
+echo.
+echo Done.
+if %action% == f goto run 
+pause
+goto menu
+
+:run
+echo.
+echo Running ...
+
+@ECHO ON
+start %QSPGUI% %CP_TO%\glife.qsp
+@ECHO OFF
+
+:exit
+pause