aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.bat12
1 files changed, 12 insertions, 0 deletions
diff --git a/build.bat b/build.bat
index 08be4f2..cd0a0d2 100644
--- a/build.bat
+++ b/build.bat
@@ -2,6 +2,17 @@
title Building C++ Program
echo Building Program...
echo Shell: CMD
+:findmingw
+set mingwPath=0
+if exist "C:\MinGW" (
+ set "mingwPath=C:\MinGW"
+)
+if "%mingwPath%"=="0" (
+ title Building C++ Program - Failed
+ echo MinGW could not be found. Please make sure that MinGW is installed.
+ pause>nul
+ exit
+)
if exist out (
echo Skipping making the "out" folder...
) else (
@@ -10,5 +21,6 @@ echo Created the "out" folder..
)
g++ --version
g++ -g main.cpp -o out/game.exe
+title Building C++ Program - Success
echo Building Complete!
pause>nul \ No newline at end of file