Skip to content

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.

build(cmake): version 2.6.0

Olcay Seygan7134c3a215b2
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1599f807b..2df47769e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -420,7 +420,7 @@ found and fixed — EA's own, not port damage.**
- Alt-tabbing back into a fullscreen game brings the game back, once. It used to flicker between the game and the desktop several times and could end as a minimised window that clicking on the taskbar would not open. Putting the screen back was itself switching windows, and every switch set off another round of it. The game now waits until the switch is over before it touches the screen, and nothing it does on the way in or out takes focus from anyone. Coming back changes no display mode at all, so a 144 or 165 Hz monitor no longer drops to 60 and goes black for a moment.
- Fullscreen below your monitor's own resolution fills the screen. Picking 1280x720 or 1600x900 on a 1080p monitor switched the monitor to that size, and on some PCs the switch either did not happen or came out unscaled, so the game sat in the top left corner of the desktop like a window. The monitor now stays at its own resolution and the game's picture is scaled up to cover it, with the pointer following the picture. Your second monitor stays where it was too: on a two-screen desk the old switch moved it 640 pixels to the left, along with every window on it.
- Fullscreen Fit, under Window Mode on the Display page of both the Classic and the Reforged options, decides what happens when your resolution is not your monitor's shape: 1920x1080 on a 1920x1200 screen, 1024x768 on a widescreen. Stretch to fill covers every pixel, as before; Keep shape, add bars keeps circles round with black either side. 1024x768 on a 1920x1080 monitor comes out 1440x1080 in the middle with 240 pixels of black left and right.
-- The corner of the options screen, Classic and Reforged alike, names the build you are running, "Reforged v2.5.0", the same number the launcher and the release list give. It used to say "Version 1.04", EA's last patch, whichever build you had installed.
+- The corner of the options screen, Classic and Reforged alike, names the build you are running, "Reforged v2.6.0", the same number the launcher and the release list give. It used to say "Version 1.04", EA's last patch, whichever build you had installed.
- Under the resolution list, "Monitor supports this mode" tells you the size you picked is one your monitor lists as its own, asked of Windows each time you change the list or the monitor.
- Hotkeys work again after Alt+Tab, and the game's own pointer comes back with them. Since 2.4.0, returning to a fullscreen game left Windows thinking no window was listening to the keyboard: every key you pressed made the Windows error sound and did nothing in the game, and the plain Windows arrow stood in for the game's cursor. The game takes the keyboard back as it comes up from the taskbar now.
- 481 base-game textures at four times the resolution now beat Zero Hour's downscaled copies.
diff --git a/GeneralsMD/Code/CMakeLists.txt b/GeneralsMD/Code/CMakeLists.txt
index a62bd425c..5d779c30d 100644
--- a/GeneralsMD/Code/CMakeLists.txt
+++ b/GeneralsMD/Code/CMakeLists.txt
@@ -1636,9 +1636,9 @@ endif()
set(GENERATED ${CMAKE_CURRENT_BINARY_DIR}/generated)
file(WRITE ${GENERATED}/BuildVersion.h
"// Generated by CMake, standing in for Tools/buildVersionUpdate.\n"
-"#define VERSION_STRING \"v2.5.0\"\n"
+"#define VERSION_STRING \"v2.6.0\"\n"
"#define VERSION_MAJOR 2\n"
-"#define VERSION_MINOR 5\n"
+"#define VERSION_MINOR 6\n"
"#define VERSION_BUILDNUM 0\n")
file(WRITE ${GENERATED}/GeneratedVersion.h
"// Generated by CMake, standing in for Tools/versionUpdate.\n"