LeonidaReforge/Leonida
GamesExperimental static-recompilation project that translates Xbox Series GTA VI shaders and assets on your own PC.
What it is
Leonida is an experimental, build-it-yourself research project that explores running the Xbox Series build of Grand Theft Auto VI on Windows using a user's own copy of the game. It is a static recompilation effort: the console's x86-64 game code is loaded and run natively, console system software is reimplemented, precompiled RDNA2 GPU programs are translated to SPIR-V for Vulkan, and models, textures and audio are read from the user's package. Everything happens locally on your PC.
The repository is an independent continuation of the original Leonida project, maintained by a community fork LeonidaReforge. It contains tooling and research, not a playable release: there is no game, keys or executable in the repo, and booting or story mode does not work. The inherited status table is a historical snapshot, not a current compatibility report.
Quick start
You need your own Xbox Series package of version 1.0.2.1, with MicrosoftGame.Config and .rpf archives readable on disk, on Windows 10/11 x64. Install Python 3.12+, the .NET 8 SDK, the Vulkan SDK, and an LLVM build with the AMDGPU target (Windows official builds lack it; scripts\build_llvm_mc.ps1 or a conda llvm-tools install can provide llvm-mc.exe). Visual Studio 2022 with Desktop development with C++ and Windows SDK 10.0.26100+ is needed for the runtime stage; ffmpeg is optional.
Clone with submodules, which a GitHub ZIP download omits:
git clone --recursive https://github.com/LeonidaReforge/Leonida.git
Recommended path: double-click Build.bat, let it auto-find your game copy, and the result goes to Documents\Leonida. Or drive it from PowerShell:
python -I make_game.py --check
python -I make_game.py --game "D:\path\to\package" --out "D:\Games\Leonida" --work "E:\leonida-work"
The build can resume after stopping. Shader translation is the longest CPU step; stages and job counts are configurable, and python -I tools/progress_dashboard.py produces an offline status page (see dashboard notes).
How it works
The pipeline has four core pieces. A version check hashes package files; a shader pipeline carves DXBC containers from shaders.rpf, unpacks native RDNA2 programs, disassembles them with LLVM (gfx1013) and translates them to SPIR-V. An asset export uses rpf9-explorer to find validated resources inside RPF9 archives and .ttpf texture pools. The runtime maps the Windows PE image and resolves imports to shims (GDK, XMem, d3d12_xs), with an in-progress Xbox D3D12 → Vulkan layer described in the D3D12/Vulkan plan.
Inherited measurements report all 26,503 shaders translated and passing spirv-val, 382,781 models exported, texture dictionaries decoded, and audio banks repackaged; these results are historical and the continuation has not independently reproduced them. Many wave64 shaders are exact only on 64-wide subgroups (AMD) or under wave64 emulation on NVIDIA/Intel.
Constraints
- No playable result. No verified retail boot or working gameplay; the runtime has not been tested against the real game executable.
- Disk and time. A full build needs roughly 400 GB free; running the port via
--stages check,shaders,runtimeneeds about 30 GB, while the assets stage alone is about 370 GB and can take hours.--workand--outcan use another drive. - Platforms. Windows has full tooling; Linux builds the translator, asset tools and Vulkan tests natively, while the runtime is Windows code run under Wine or Proton. macOS Apple Silicon runs the Python and Vulkan tools but has gaps such as no geometry stage and no mesh shader support.
- Own copy required. Nothing decrypts or works around protections, and generated shaders, assets and saves must not be shared or attached to issues.
- License. GPL-3.0 or later; third-party components keep their own licenses.
HotRepo's take
On the 2026-11-24 new-project list it recorded 109 stars and 25 forks in the first observation window, with no all-language daily rank logged. The substantive signal is not the star count but the unusually detailed inherited engineering record: a full shader corpus with validation links, GPU test coverage across dozens of driver combinations, and an explicit list of open problems. That record makes the project useful as a reference for console shader recompilation, even though it currently offers nothing playable.
Want to help
The largest open pieces are the shader translator on hardware (VS input layout and wave64 cross-half code on 32-wide subgroups), the Xbox D3D12 → Vulkan layer, and model recovery. Work is coordinated through the repository issues; CONTRIBUTING.md and SECURITY.md set the ground rules, and game files, extracted assets or generated shaders must never be attached.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.
You might also like
- ubiquitarianism/leonidaA static recompilation project aiming to run the Xbox Series version of GTA VI natively on Windows PCs, built locally from a user's own game copy.
- Vyzerythe/LeonidaBuild a native Windows port of GTA VI from your own Xbox Series copy, starting with shader and asset extraction.
- ItsNotRexed/LeonidaStatic recompilation project that aims to run GTA VI's Xbox Series code natively on Windows using your own game copy.
- ProjectLeonida/LeonidaA static recompilation effort that turns an Xbox Series copy of GTA VI into native Windows code, built locally from the user's own game files.
- avivetech/LeonidaA static recompilation of GTA VI for Xbox Series that builds and runs natively on Windows from your own game copy.