Skip to content
Alexis Maiquez Murcia edited this page Dec 4, 2026 · 3 revisions

Welcome to the gtasa-pc-matching wiki!

gtasa-pc-matching is a matching decompilation of Grand Theft Auto: San Andreas 1.0 for PC: the game's code (and the RenderWare 3.6 engine it uses) translated back to C++ and C that, built with the original's compilers, rebuilds the original compact executable byte for byte. The repository doesn't contain the game: you need your own copy to play anything it builds.

What it builds

  • The matching exes. Built with the original's toolchain (VS.NET 2002's cl 13 for the game, Visual C++ 6.0 SP5 for RenderWare) and linked by VS.NET 2002's LINK 7.0, as the original was. The compact exe (gta_sa.exe) is the original's byte for byte, SecuROM pass included; the normal exe (gta_sa_normal.exe) is LINK's own link with no SecuROM pass. tools/build.py must end in matches.
  • The IDE solutions (ide/): Visual Studio 2002, 2005, 2010 and 2012-2026 projects. Matching runs the original's tools and makes the exes above; Normal (all but VS2002; Win32, and x64 except in VS2005) is the game built by Visual Studio's own compiler as an ordinary project, with its own debugger and PDB.
  • The Linux port (port/linux/): a native Linux build with CMake (i386, x86-64 and arm64), with PC's code and PC's visuals, on a GL ES 2 or Vulkan renderer, OpenAL Soft and SDL2.
  • The clang Windows exes (tools/modern.py --link): a non-matching exe for debugging and modding, built with clang and lld-link, with Direct3D 9, OpenGL and Vulkan renderers; --x64 builds it for 64-bit Windows.

The matching builds keep every bug of the original. The other builds can turn on fixes of those bugs, and the ports need some fixes of their own to behave like PC. Both are listed here:

  • Fixes: PC's own bugs, fixed under GTA_FIXES (crashes and hangs, AI, camera, frame-rate dependence, audio, menus).
  • Port fixes: what makes the ports behave like PC (under GTA_PORT or in port/).

In the repository

  • README: getting started, the toolchain, building, the Linux port, the symbols file for modding.
  • CONTRIBUTING: the rules, claiming work and pull requests.
  • docs/workflow.md: how the work is organised and the checks before a pull request.
  • docs/decompiling.md: how functions are decompiled and matched.
  • ide/README.md: the Visual Studio projects and what each configuration needs.
  • docs/linux-port.md: the Linux port in detail.

This is an unofficial fan project, not affiliated with or endorsed by Rockstar Games or Take-Two Interactive.

Clone this wiki locally