A2 Racer gets a static decompilation and a prerelease port for Windows, Linux and macOS
A2 Racer, a 1997 PC racer, now has a GitHub decompilation with a prerelease C port that runs on Windows, Linux and macOS. You need your own disc dump.
PC (Windows) → PC (Windows), Linux / Steam Deck, Mac · Decompilation
A2 Racer, a 1997 PC racing game from the Dutch CD-ROM release by Davilex Entertainment, now has a static decompilation on GitHub. The repo, xvilo/a2-racer-davilex-decomp, is marked as a prerelease and includes a C rewrite that runs on Windows, Linux and macOS.
The work starts from the disc. The author uses REA with Ghidra as the decompiler backend, then runs a set of scripts written for this game. They apply names and structures for the DirectX 3 and 5 interfaces the game uses, add Watcom’s register calling conventions (the game was built with Watcom), and infer function signatures from the machine code. The output is a decompiled.c file per module, plus a version split into the original source files, such as opponent.c and camera.c.
The port is a clean C rewrite on SDL2 and OpenGL, built from the decompiled reference. According to the README, the menus, movies and the race all run. The README does not say what is still missing, so expect an early build.
The repo does not include the game. You need your own disc dump, and the steps below assume the file is named A2RACER_AMST.BIN.
- Put the dump in
../A2Racer-dump/. The README gives the expected SHA-256a6710ba40ea107cd822d5622d0cb564d02540e16dadf43ecb68202a60e3279aband describes the file as 46,245 raw 2352-byte sectors with no.cuefile. - Unpack it next to the repo:
python3 -I tools/bin2iso.py ../A2Racer-dump/A2RACER_AMST.BIN ../A2Racer-dump/A2RACER_AMST.iso
python3 -I tools/isoextract.py ../A2Racer-dump/A2RACER_AMST.iso ../A2Racer-dump/disc
- Install JDK 21 and Ghidra 12.1.4, set
JAVA_HOMEandGHIDRA_INSTALL_DIR, then runtools/decompile_all.sh. - For menus, models, textures and sounds, run
tools/a2extract.py <disc> <out>. Keep that output out of the repo.
Next I’d watch whether the port picks up audio and save support, though the README says nothing about either yet.
