Compact exe byte-matching decompilation
// momentum
// why it's here
- Created 4 weeks ago and already shipping
- Health 99/100 with only 44 stars
// how to help
// readme
gtasa-pc-matching
A byte-matching decompilation of Grand Theft Auto: San Andreas 1.0 for PC, using the compact executable as its base.
This repository doesn’t contain the game: you need your own copy to play what it builds. The executable’s disassembly
is tracked in asm/, split by function, and rebuilds it byte for byte. Functions leave asm/ one at a time as they’re
translated to C++ in src/, and a linker script puts them in their place. Only the game’s code and RenderWare get
decompiled: libraries are imported where they can be found.
Getting started
A matching build needs no game files: only this repository, a toolchain of 2002-2003 compilers and SDKs in deps/, and
a few modern tools to run them. VS.NET 2002’s LINK 7.0 links it, as the original was, and it makes two exes: the
compact exe (build/gta_sa.exe), the original’s byte for byte, and the normal exe (build/gta_sa_normal.exe), LINK’s
own link with no SecuROM pass and no other pass after it, which isn’t checked. It ends in matches when the compact exe
is the original’s.