From a63c17bd09ed3b677a06d0aed7a933dea46c51d8 Mon Sep 17 00:00:00 2001 From: Alee Date: Mon, 28 Jan 2019 16:53:58 -0500 Subject: added a mingw check --- build.bat | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 -- cgit v1.2.3