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.

29.1 KB
Raw Blame

Zero Hour Reforged on macOS, Linux and Windows on ARM64

This branch ports the Zero Hour engine off Windows without changing what the game computes. A match recorded on one platform plays back to the same world checksum on every other, and the Windows x64 build keeps its own renderer and platform layer. This file covers what the port adds, how to build and run it, how it works, how it is tested, and what is still open. Every change a Windows build sees is listed, with its verification status, in docs/porting/windows-impact.md.

What the port adds

Platform Toolchain Renderer Status
macOS arm64 (Apple silicon) AppleClang, macOS 13 or later the port's D3D9-shaped device on SDL3 GPU, Metal underneath playable; packaged as Zero Hour Reforged.app
macOS x86_64 AppleClang (Intel Macs, or Rosetta) the same, on Metal builds and runs; a universal2 app can be made at release time
Linux x86_64, including the Steam Deck GCC or Clang, glibc 2.31 or later for the portable package the same device, Vulkan underneath playable; engine-only AppImage, .deb, .rpm, Arch package and Flatpak, and a portable folder
Linux arm64 GCC or Clang Vulkan builds and passes ctest; no packaging yet
Windows x64 MSVC (Visual Studio 2022) unchanged: Direct3D 9, or the Direct3D 11 twin unchanged, plus the port's fixes
Windows ARM64 MSVC as x64: the Direct3D 11 twin by default, -d3d9 for Direct3D 9 (Windows' own Direct3D 9 on 12 there). There is no d3dx9_43.dll for ARM64, so it binds the port's own D3DX: the macOS and Linux texture code over the real device, and d3dcompiler_47.dll for shaders builds; its D3DX has not yet run on an ARM64 machine. The same code, forced on x64 with ZH_D3DX_PORTABLE=1, draws what the DLL draws

Also added: sound through miniaudio, text through FreeType, video through FFmpeg on every platform, LAN play between any of the platforms, a crash reporter off Windows, an optional smooth-motion mode that draws units between logic ticks, and about 80 new ctest tests.

Building

Every platform first fetches the third-party sources EA stripped and the repository does not carry: GeneralsMD/Code/Tools/vendor.sh (POSIX) or vendor.ps1 (Windows). They are pinned; each is fetched once and a second run does nothing. The build scripts call them for you.

macOS and Linux

build-macos.sh and build-linux.sh at the root take build.bat's arguments. Both run GeneralsMD/Code/Tools/build-posix.sh, which checks the toolchain and names what to install when something is missing, runs vendor.sh, configures with Ninja, builds, runs ctest when asked and stages the game.

./build-macos.sh                    # Release into build-mac/, then build-mac/Zero Hour Reforged.app
./build-linux.sh                    # Release into build-linux/, then build-linux/ZeroHourReforged/bin/generals
./build-linux.sh Release test       # the same, with ctest before the staging
./build-linux.sh Debug              # another configuration (Release, RelWithDebInfo, Debug)
./build-linux.sh Release generals   # one target and nothing else
./build-linux.sh clean              # delete the build tree and start again

A machine-specific override (another CMake, generator or build folder) goes in build.local.sh at the repository root, which is git-ignored.

On macOS the script needs the Xcode command line tools (xcode-select --install) and Homebrew's cmake and ninja. The app it makes is the macos_app target, ad-hoc signed and verified; ninja -C build-mac macos_app makes it again on its own.

The app carries no upscaled art, and neither do the Linux packages (see Linux packages). ZH_APP_BUNDLE_ID sets the bundle identifier, and ZH_X86_64_GENERALS=<an x86_64 build's generals> makes the app universal2. The deployment target defaults to macOS 13.0, and an API newer than the target is a build error.

Linux

On Linux the script checks for a compiler, CMake, Ninja and the headers SDL3 builds against, through pkg-config, and prints the apt, dnf or pacman command for whatever is missing. On Ubuntu 24.04 that is:

sudo apt-get install cmake ninja-build g++ git curl unzip xz-utils make pkg-config python3 libx11-dev \
  libxext-dev libxcursor-dev libxi-dev libxfixes-dev libxrandr-dev libxss-dev libxtst-dev libwayland-dev \
  libxkbcommon-dev wayland-protocols libegl-dev libdrm-dev libgbm-dev libvulkan-dev libfontconfig-dev lld unifdef

spirv-tools is optional: test_shader_sdl validates every generated program with spirv-val and says SKIPPED without it.

build-linux/ZeroHourReforged/ has the Linux package's layout: bin/generals and the staged overlay at share/zero-hour-reforged/overlay, a copy, so the whole folder can be moved; bin/generals moved alone is an unpacked build, which takes its own folder for the install. It links against this machine's libraries, so it is not a folder to hand to anyone: linux-portable.sh below makes that one. GeneralsMD/Code/Tools/linux-check.sh builds and tests the tree in containers ({gcc, clang} x {arm64, amd64}) from a Mac or a Linux host with Docker.

The Steam Deck and other distributions. `GeneralsMD/Code/Tools/linux-portable.sh --build

--out

--cmake ` builds inside Valve's Steam Runtime 3 "sniper" SDK container and makes one folder that runs on SteamOS and any desktop Linux of the last five years with nothing installed (`--appimage` also makes an AppImage). It refuses a binary that needs a newer glibc, any shared libstdc++, or a library whose licence is not listed. The folder's `README.txt` tells players how to add it to Steam.

Linux packages

GeneralsMD/Code/Tools/linux-packages.sh makes the Linux release files from one command, each step in docker: an AppImage, a .deb, an .rpm, an Arch .pkg.tar.zst and a single-file .flatpak. It also makes the portable folder as a .tar.zst, and SHA256SUMS. They are meant to be attached to a GitHub release; no repository (Flathub, AUR, a PPA or COPR) is involved.

GeneralsMD/Code/Tools/linux-packages.sh --build <build folder> --out <out folder> \
  --cmake <Kitware's CMake 3.29+ for Linux>/bin/cmake --appimagetool <appimagetool> --runtime <type-2 runtime>
  • One binary in all five. Each wraps the folder linux-portable.sh --no-art builds in Valve's Steam Runtime "sniper" SDK and checks. The checks: glibc 2.31 at most; libstdc++, SDL3, FFmpeg's LGPL-only build and the rest static; the licences checked against the link line. The .deb and .rpm depend only on glibc and fontconfig. What SDL and miniaudio load at run time (Vulkan, X11 or Wayland, ALSA or PulseAudio, D-Bus) is recommended, not required.
  • Layout. The .deb, .rpm and Arch package install the folder unchanged in /usr/lib/zero-hour-reforged, with /usr/bin/zero-hour-reforged, a menu entry, icons and the licences. The Flatpak (io.github.olcayseygan.ZeroHourReforged, on org.freedesktop.Platform 25.08) has no filesystem permission.
  • No game files. The first start finds the player's Zero Hour or asks for it. In the Flatpak it asks through the desktop portal's folder chooser, which shares only the folder chosen. A Zero Hour whose Generals is not inside or beside it is followed by a second question, for the Generals folder. That covers CD and First Decade installs, and the Flatpak's sandbox.
  • No art in the packages or the macOS app, as on Windows, and the game does not download it. It reads the upscaled Reforged*.big from ReforgedArt/ in the user data folder when they are there, searched after the package's own overlay: ~/Library/Application Support/Command and Conquer Generals Zero Hour Data/ReforgedArt on macOS, $XDG_DATA_HOME/Command and Conquer Generals Zero Hour Data/ReforgedArt on Linux (~/.local/share without XDG_DATA_HOME, and ~/.var/app/io.github.olcayseygan.ZeroHourReforged/data inside the Flatpak). Whatever installs the art puts it there. Without it the game plays at the original textures.

Tools/linux-packages-check.sh proves the files on clean containers:

  • E1 at the three pins, through the installed /usr/bin/zero-hour-reforged, on an install with only the required dependencies and no network;
  • one software-rendered frame (Xvfb and Mesa's lavapipe) on a default install.

It passes on Debian 12, Ubuntu 24.04, Fedora, openSUSE Tumbleweed and Arch Linux, and for the AppImage. The Flatpak's E1 passes on a Steam Deck, as a user installation run through flatpak run.

Windows

Unchanged: double-click build.bat, or see README.md. An ARM64 machine builds ARM64 into build-arm64. windows-ci.ps1 runs the whole Windows check in one command: the build, ctest, the GPU tests in the desktop session, and E1's replay CRCs (-DataDir, -ExpectCrc), its runs side by side, each on its own farm with its own user data folder.

Build options

Option Default What it does
ZH_GAME_DATA empty a folder holding a Zero Hour install's zerohour/ (and generals/), for the tests that read game data; without it they skip
ZH_SANITIZE empty Clang/GCC only: an -fsanitize= list; see docs/porting/sanitizers.md
ZH_APP_BUNDLE_ID, ZH_X86_64_GENERALS see above the macOS app
ZH_PORTABLE_CMAKE empty Linux: the CMake linux_portable_check runs inside the container

Running

The port does not include any game data. It needs an installed Zero Hour (Steam, EA App, CD or The First Decade) with the original Generals it builds on. The engine finds the install in this order:

  1. -root <dir> on the command line, used as given;
  2. InstallPath in Registry.ini (the port's stand-in for the Windows registry, in the user data folder), if it still holds the game;
  3. packaged builds only: the usual places (~/Games, /Applications, every Steam library, CrossOver and Whisky bottles), the first that holds the game;
  4. packaged builds only: a folder chooser (SDL's native dialog) on the first launch. A folder without INIZH.big and the base game's archives is refused with the reason, and the choice is saved to Registry.ini, so the chooser appears once. A Zero Hour whose original Generals is not inside or beside it is followed by a second question, for the Generals folder, saved as Registry.ini's Generals InstallPath. In the Flatpak the chooser is the desktop portal's, which shares only the folder chosen. The Steam Deck's Game Mode has no dialog, so the game asks for -root in Steam's launch options instead;
  5. unpackaged builds: the executable's directory, as on Windows.

The fork's own data (its INIs, strings, windows and the upscaled art) is an overlay searched before the install: inside the app bundle, beside the executable in the Linux package, or -overlay <dir> for a development build (the zh_overlay target stages it into <build>/overlay). The install itself is never written to: every root is read-only to the engine, and a write into it is refused and logged.

Settings, saves, replays and logs go to the user data folder: ~/Library/Application Support/Command and Conquer Generals Zero Hour Data on macOS, $XDG_DATA_HOME or ~/.local/share/Command and Conquer Generals Zero Hour Data on Linux. ZH_USER_DATA_DIR overrides it.

New switches, all platforms unless noted: -hiddenwindow (POSIX: windowed, never shown), -offscreen (POSIX: no window at all), -writableRoot (POSIX, a test harness's control, never a player's switch), and -noDynamicLOD, -noaudio, -nologo and -novideo, which are now accepted in Release. A hidden or offscreen run is silent unless ZH_ALLOW_AUDIO=1. ZH_UNATTENDED=1 (or -headless) makes the message boxes that could wait for a person print to stderr and exit instead.

The top right info strip (the clock, the frame rates and the connection) is the player's own ShowNetBox option, on by default in every build. Upstream's ShowHudOverlay decides nothing here: the GameData.ini key is read and ignored so an old file still loads, and -showHudOverlay is gone.

Menu Layout (Options, Display) chooses how the 800x600 menu layouts meet a wider screen. Fit, the default on macOS and Linux, draws them at one scale, centred, so panels, logos and the map preview keep their shape; the backdrop still fills the screen. Stretch, the default on Windows, widens them as before (1.2x at 16:10, 1.33x at 16:9). The command bar scales itself either way. MenuLayout in Options.ini (0 Stretch, 1 Fit).

How it works

Platform layer. Windows keeps Win32Device, DirectInput and Miles. Off Windows the window, events, timers and entry point are SDL3 (GameEngineDevice/*/SdlDevice, Main/PosixMain.cpp); the file systems, install discovery and crash handler are in PosixDevice; sound is the Miles API reimplemented on miniaudio (WWVegas/Miles6/miniaudio), so MilesAudioManager compiles unchanged; text is rasterised by FreeType behind the same seam GDI uses on Windows, with GDI's line metrics for the substitute fonts. CMake knows ZH_PLATFORM_WINDOWS and ZH_PLATFORM_POSIX, with macOS and Linux only as refinements of POSIX.

Renderer. WW3D2 and W3DDevice are written in Direct3D 9: hundreds of its names and thousands of uses outside DX8Wrapper. Rather than rewrite them, the port gives them a D3D9-shaped device of its own (GameEngineDevice/Source/PosixDevice/Render, declared by Libraries/Include/Platform/D3D9Posix.h). Resources live in CPU memory; draws resolve at draw time into cached SDL3 GPU pipelines, which are Metal on macOS and Vulkan on Linux. -headless makes the same device with no window and no GPU, as Windows' -headless keeps a real device and skips only the frame. D3DX's arithmetic is the port's own (d3dx9portable.cpp), checked bit for bit against Microsoft's d3dx9_43.dll by an oracle test.

Scaled displays. The game's sizes are pixels, as on Windows, where it is DPI-aware. The window asks SDL for a high-density drawable, and a windowed resolution is divided by the monitor's scale to get SDL's points. So on Wayland at 150 % or 200 %, or on a Retina Mac, a 1280x720 window is 1280x720 pixels, drawn one to one rather than stretched. Checked on headless sway (x1.5) and weston (x2), with Xvfb as the control; clicks land on the same game pixels.

Shaders. The fixed-function and engine shader generators (ffvertex.cpp, ffshader.cpp, engineshader.cpp) still emit HLSL, one language for every target. Off Windows that text goes through glslang's HLSL front end to SPIR-V for Vulkan, then SPIRV-Cross (through SDL_shadercross) to MSL for Metal. Programs are compiled ahead of need and cached. On Windows the generated HLSL for Direct3D 9 and 11 is byte-identical to what it was, apart from the generator fixes listed below.

Wide characters. WideChar was wchar_t: 2 bytes on MSVC, 4 on Clang and GCC, which would change string CRCs, network messages and replays. It is now char16_t on every platform (Lib/WideChar.h), with the engine's own string functions in Lib/WideCharFns.h instead of the wcs* family. Non-ASCII in a literal is written as a \u escape (widechar_check enforces it).

LP64. Windows is LLP64 and macOS and Linux are LP64, so long is 8 bytes off Windows. Wire and file structures use fixed-width types, and static_asserts pin the layout of every packed network and W3D structure, so a disagreement stops the build instead of desynchronising a game.

Determinism. The simulation must compute the same bits everywhere:

  • -ffp-contract=off, -fsigned-char and -fno-strict-aliasing on every Clang and GCC build, keyed on the compiler (no FMA contraction, which MSVC never does).
  • Platform/MsvcFloatCasts.h: a float converted to an integer out of its range is undefined in C++. MSVC x64 lowers it to cvttss2si, and the engine relies on that answer; these helpers compute MSVC's result on every platform. Lib/DetRound.h does the same for the rounding conversions.
  • D3DX's vector maths on the simulation path goes through the portable implementation on Windows too, because d3dx9_43.dll picks a different summation order on Intel and AMD CPUs (port defect 7).
  • The multiplayer compatibility CRC hashes a build fingerprint, a CRC-32 over the tracked sources listed in GeneralsMD/Code/BuildFingerprint.manifest, instead of the executable's bytes, so identical sources agree across compilers and platforms.

E1, the replay check (Tools/replay-check.sh, replay-check.ps1 on Windows), plays a headless skirmish, plays its replay back and plays the seed again, and compares the three runs' world CRCs. The pinned results are seed 0 at 2400 frames 0x67F86891, seed 0 at 24000 0x6404352D and seed 1 at 24000 0x90B6D230 (logic at 60 Hz, measured on Windows x64; macOS and Linux not re-run since), since upstream 1e94f8c7 was merged; they are identical on macOS arm64, macOS x86_64 under Rosetta, Linux x86_64 (GCC), Windows x64 and Windows ARM64 (MSVC; ARM64 from a Windows ARM64 CI run on the integrated tree). Replays recorded on one platform play back on the others, and a two-host LAN match between macOS and Linux keeps one world. Upstream gameplay data changes move the pins.

Design decisions

  1. Windows routes the simulation's D3DX maths through the portable implementation (port defect 7).
  2. A CPU or GPU the engine cannot measure (Apple silicon, any Vulkan device) counts as meeting the top preset's requirement when the default detail level is chosen. POSIX only.
  3. Linux is a target alongside macOS: SDL3 for the platform layer, miniaudio for sound, SDL3's GPU API for the renderer. Windows keeps its own.
  4. Shaders stay HLSL; SPIR-V and MSL are derived (glslang, SPIRV-Cross). Measured on all 49 generated programs. glslang has deprecated its HLSL front end (removal not before about 2027); the fallback is DXC through the same call.
  5. The compatibility CRC hashes the build fingerprint instead of the executable.
  6. Text is rasterised with FreeType off Windows, with metric-compatible fonts on Linux.
  7. The renderer reaches POSIX through a D3D9-shaped device; Windows keeps Direct3D 9 and 11.
  8. The POSIX engine uses the W3D factories, as Windows' own headless mode does.
  9. The fork's data is an overlay the game mounts, never written into the player's install.
  10. One vendored library is patched: SDL3 may make a Metal device with no window (Libraries/Source/sdl3-metal-windowless.patch, behind a hint), for machines with no window server.
  11. Smooth motion: units are drawn between logic ticks, one tick behind. It changes the picture, never the game, and is on by default everywhere except Windows.

Port rules

The comments cite these by number. Rule 2: platform differences go behind a named header with the reason in its comment, not #ifdef _WIN32 scattered through game code. Rule 3: nothing the simulation touches changes behaviour; a change that moves a replay checksum is a bug. Rule 8: non-ASCII in a literal is a \u escape. Rule 9: never start the engine with a real install as its root, because GameEngine::init deletes Data\INI\INIZH.big from its root; tests run on a read-only farm of symbolic links (Tools/install-guard.sh checks the install did not change). Never define _UNIX: it switches on Westwood's abandoned UNIX port (MSVCCompat.h stops the build, unix_define_check checks the command lines). The only locale category the game sets is LC_TIME.

Work items are named in comments by short labels: A (the POSIX device: A1 compiles it, A2 resources, A3 draws), B1 to B19 (portability: B1 wide characters, B2 clocks, B5 Win32 types, B7 W3D layout), C1 to C5 (POSIX engine, entry point, input, audio, crash reporting), D1 to D6 (renderer funnel, shaders, text), E1 (replay check), E3 (the x86_64/arm64 differential harness), L1/L2 (LAN, Vulkan), N1 (build fingerprint), P1 to P3 (macOS app, macOS reach, Linux package), R1 (smooth motion), T1 (simulation terrain), V1 (video), W1/W2 (Linux, the first MSVC build), W-ARM64, X1 (a Windows Direct3D 12 renderer, since removed), X2 (Direct3D 11 measurements). M1 to M5 are the milestones: a headless build, a headless game, the renderer funnel, a game that draws, and a game that ships.

Testing

ctest in the build folder runs every suite: the engine's own (test_gameengine), the libraries', and the port's (the POSIX device, the shader generators, the file systems, input, audio, LAN, packaging). With -DZH_GAME_DATA=<folder> the data tests run too: replay_check (E1, including two 24000-frame matches), locomotor_check, net_check (two copies of the game in one LAN match), the install and overlay checks and more. Automated runs never make a sound or show a window.

The renderer is checked against FFReference (Tests/ffreference), Direct3D 9's fixed-function pipeline computed in double precision from Microsoft's documentation, written independently of the device. It judges the game's own captured draws (ffref_capture_selfcheck, ZH_GPU_CAPTURE) and the device's draws on the machine's GPU (ffref_gpu_selfcheck). Where the documentation was ambiguous, Windows' own Direct3D 9 (WARP and the reference rasteriser) settled it (knownprobe_windows.cpp, f7probe_windows.cpp).

Other checks: arch_differential (one source built for arm64 and x86_64 and run under Rosetta, the architecture half of determinism), d3dx_oracle (against Microsoft's DLL), test_msvc_float_casts (against MSVC's own casts on Windows), license-headers.py --check, fingerprint-manifest.sh --check, include_case_check and widechar_check.

Known issues and limitations

  • Metal's 27 pixel differences. Metal on Apple silicon forms its 2x2 derivative quads across an edge that two triangles of one indexed draw share, so a pixel beside that edge can take its neighbour's mip level. All 27 of Metal's disagreements with FFReference on the captured draw sets (243 pixels, worst 51/255) are this, and every one agrees when drawn a triangle per call. Measured on an M3 Pro only. Not fixed: the fix would draw every mesh unindexed.
  • Windows ARM64's D3DX has not yet run on an ARM64 machine. The build has no d3dx9_43.dll and binds the port's own D3DX in its place (d3dx9runtime.cpp). That code was proved on x64, where ZH_D3DX_PORTABLE=1 binds it instead of the DLL: test_d3dx9portable_oracle holds it against the DLL on a real device, and tree-check.ps1 -NewEnv ZH_D3DX_PORTABLE=1 against the same exe on the DLL. Where it parts from the DLL, no game path goes: a luminance destination, D3DX_FILTER_TRIANGLE, a box filter over more than 2:1, a DXT3 or DXT5 block whose colour end points are out of order decoded on the CPU, and loading an image file.
  • Nothing installs the upscaled art on macOS or Linux yet. The packages and the app play at the original textures unless the Reforged*.big are copied into ReforgedArt/ in the user data folder by hand.
  • The Flatpak in the Steam Deck's Game Mode: there is no folder dialog there, and -root names a folder the sandbox cannot see. Start it once in Desktop Mode to choose the folder, or grant it: flatpak override --user --filesystem=<folder> io.github.olcayseygan.ZeroHourReforged. The app ID is a default, open to the maintainers' choice, as the macOS bundle identifier is.
  • The portal's folder dialog itself is untested: it needs a person to click it. The chooser logic behind it is tested headless, the Generals question included.
  • An _INTERNAL build has not been built. A Windows x64 Debug build compiles and passes ctest and E1 (seed 0 at 2400 frames, Release's pin) since 2026-09-29; before that it did not compile, and did not before the port either, for a different reason.
  • Texture stage 2 is invisible to the Direct3D 11 backend (suspected, by reading: shader.cpp sets it through raw DX8CALL). Upstream's code, not the port's; not fixed.
  • TheGameResultsQueue is published to its thread without synchronisation (ThreadSanitizer; benign on x86, not on ARM in principle). Not fixed.
  • Windows verification is partial. Of the rows in docs/porting/windows-impact.md, 162 are verified on Windows, 63 partly and 101 open (as of 2026-10-02). What is left needs checks run in a Debug build, someone at a Windows screen (menus, text, input), a network game between two Windows machines, GameSpy, an AMD machine, or old replays and saves.
  • Retail replays (32-bit time_t in the header) are probably misread by both 64-bit builds; unverified.
  • On a case-sensitive file system, a user data folder with a capital letter in its path may break the random map's path, which the engine lowercases whole.
  • The app icon comes from Main/Generals.ico's 48 px image, which is soft on a Retina display.
  • The macOS app is ad-hoc signed, not notarised.

Defects found while porting

Found by compiling with a second compiler, sanitizers and tests. "Fork" means introduced by this repository's own changes, "upstream" by a specific upstream commit; the rest are in EA's release.

# Defect Status
1 Debug and _INTERNAL builds did not compile on x64 (live __asm in PerfTimer.h) the __asm replaced; Debug still stops elsewhere
2 Double free in AsciiString's reference count fixed
3 WWSaveLoad's pointer remapping never worked on x64 fixed
4 An animation picks the wrong frame from frame 33 up recorded
5 A non-ASCII player name could make an auto-saved replay's file name invalid fixed by the wide-character work
6 Translated strings used as printf formats recorded
7 Intel and AMD Windows machines compute a shell's flight path differently (d3dx9_43.dll) fixed (decision 1)
8 A malformed font string in a map script reads past a stack buffer kept, as Windows compiles it
9 Replay error boxes overstated their buffer to FormatMessageW fixed
10 The score screen's "add buddy" always asks for profile 0 recorded (GameSpy is gone)
11 A find handle opened and never closed fixed
12 Writing a file whose last name has no . spins until AsciiString throws fixed off Windows
13 A staging-room stats message sent a string's address fixed
14 A 3D turn toward a goal exactly behind does not turn recorded
15 A truncated replay header reads as 1023 U+FFFF characters kept
16 With the save folder missing, the save list read the game folder and cleanup deleted its .map files fixed
17 Fork: the logic catch-up let the water grid the simulation reads fall behind fixed
18 A screenshot reads past its image when the width is not a multiple of 8 fixed
19 Fork: a random map smaller than the generator's sizes can put two starts together recorded
20 Fork: saving nudged every object's heading, so checkpointed replays diverged fixed upstream too (d4c1f156)
21 Fork: under Direct3D 11 a scrolling texture does not scroll fixed
22 Fork: generated vertex programs ignored D3DRS_LOCALVIEWER fixed
23 Fork: under Direct3D 11 a light's own ambient colour is dropped fixed
24 Fork: a generated DOTPRODUCT3 stage did not write alpha fixed
25 Fork: generated pixel programs never added the specular colour (Direct3D 9 and 11) fixed
26 Fork: under Direct3D 11 a mesh's second vertex colour is ignored fixed
27 Fork: a stage that generates coordinates or reads another stage's set sampled the wrong ones fixed
28 A player's rank walks off its table on remote stats data fixed
29 Fork: a POSIX LAN lobby hears no broadcasts fixed
30 A map's water-track file, which a host can send, indexes past the wave table fixed
31 The port: a cloned particle emitter strdups NULL and the fog of war crashes off Windows fixed
32 A dangling iterator in LocomotorStore::reset crashes or hangs a map with its own locomotor fixed
33 Upstream (fbe8dc6f, 179e1f65): a ReplaceModule of an AI module dropped units' locomotors fixed upstream too
34 Upstream (fbe8dc6f): a module added to a reskin erased its copied modules fixed
35 The port: POSIX checkouts had LF INI files where Windows has CRLF, so the INI CRC differed and a Mac or Linux game could not join a Windows one fixed (.gitattributes, the staged INIs)
36 The port: on Linux, text with a set character width (the shell's fonts) came out 24% narrower than on Windows, because Liberation Sans's average width stood in for Arial's fixed

Unnumbered, all fixed: a failed UDP::Bind leaked its socket; a challenge with no load movie read through NULL; the game crashed when the drive holding its data went away (now it says so and exits); Player::init wrote into a freed list node after every match; the debug library's crash box waited forever under -headless; d3d9.dll was unloaded while textures still used it, which crashes on exit under Proton.

Licence

See NOTICE.md and LICENSE.md. Files the port added carry Copyright 2026 İlyas Akın and GPL-3.0-or-later. Files EA released that the port changed keep EA's header exactly, with a Modified 2026 by İlyas Akın for the macOS/Linux port line under it. GeneralsMD/Code/Tools/license-headers.py --check verifies every file against these rules. Third-party libraries are fetched at pinned versions and keep their own licences; the port's patches to them are the Libraries/Source/*.patch files.