Zero Hour rebuilt from EA's source: x64, Direct3D 11, VS2022/CMake, ~60 original bugs fixed, an AI that builds a base. Bring your own game.
C++ cmakecnccommand-and-conquercppdirectx11game-enginegame-preservationgeneralsrtssage-enginex64zero-hour
build: per-machine overrides go in build.local.bat, not in the tracked script
Olcay Seyganb10942f0b8ed
diff --git a/.gitignore b/.gitignoreindex 9955964f1..4dfdbf8c2 100644--- a/.gitignore+++ b/.gitignore@@ -10,6 +10,9 @@ build-perf/__pycache__/*.pyc+# Per-machine overrides for build.bat, read after its defaults+build.local.bat+CLAUDE.mdAGENTS.mddiff --git a/build.bat b/build.batindex f435da3e5..90109d9c4 100644--- a/build.bat+++ b/build.bat@@ -14,7 +14,9 @@ rem sources EA stripped and the fork's own art, builds, and copies the exe and erem beside it into GeneralsMD\Run. What it cannot fetch is the game: a Zero Hour install'srem *.big go next to generals.exe in GeneralsMD\Run, and the base game's in Run\ZH_Generals.rem-rem The four knobs below are overrides. Every one of them empty is the supported path.+rem The knobs below are overrides and every one of them empty is the supported path. A machine that+rem does need one puts its own "set" lines in build.local.bat beside this file, which is+rem git-ignored and read right after these defaults, rather than editing a tracked file.set "CMAKE="set "VS_EDITIONS=Community Professional Enterprise BuildTools"@@ -22,6 +24,11 @@ set "GENERATOR=Visual Studio 17 2022"set "DEFAULT_CONFIG=Release"set "BUILD="+if exist "%~dp0build.local.bat" (+ echo [build] reading build.local.bat+ call "%~dp0build.local.bat"+)+rem Double-clicked from Explorer, the window closes on the last line and nobody reads it.rem A double-click passes no arguments and puts this file's own name in the parent command line.set "PAUSE_AT_END="