Permalink
Browse files

Add build_debug.bat and update README instructions

  • Loading branch information...
1 parent f3a5398 commit d94fa1844023011d071c0b484a167fbf961b8094 @cwc committed Feb 13, 2013
Showing with 37 additions and 2 deletions.
  1. +5 −2 README.md
  2. +32 −0 build/win32/vs2012/build_debug.bat
View
@@ -19,8 +19,11 @@ build everything.
Visual Studio solution/project files are located in `build/win32`. Since these
files are typically incompatible with older versions of VS, each Visual Studio
-version has its own subfolder. Choose the subfolder appropriate to your version
-and open the `OmegaRPG.sln` file therein.
+version has its own subfolder. Either:
+
+Choose the subfolder appropriate to your version and open the `OmegaRPG.sln`
+file therein, or run the `build_debug.bat` file to automatically build the
+game.
About the Game
-----
@@ -0,0 +1,32 @@
+@echo off
+
+echo Building with devenv...
+echo.
+
+"c:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe" /build debug OmegaRPG.sln
+
+if %errorlevel% == 0 goto filecheck
+
+echo.
+echo devenv not found, trying WDExpress...
+echo.
+
+"c:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\WDExpress.exe" /build debug OmegaRPG.sln
+
+:filecheck
+if not exist ".\Debug\omega.exe" (
+ echo Build failed.
+ echo.
+ echo NOTE: This script only works if Visual Studio was installed at the default location.
+ pause
+ goto :end
+)
+
+CHOICE /M "Build successful! Run the game"
+
+if %errorlevel% == 1 (
+ cd Debug
+ omega.exe
+)
+
+:end

0 comments on commit d94fa18

Please sign in to comment.