Leonida recompiles GTA 6 Xbox code for PC natively

A fragmented console motherboard suspended in mid-air, its silicon traces glowing with flowing light that transforms into PC components — discrete GPU, RAM sticks, and a CPU — while translucent shader

The Leonida project, led by developer ItsNotRexed, is an early-stage static recompilation effort aiming to run the Xbox Series X version of Grand Theft Auto 6 natively on Windows PCs. It does not distribute game code, keys, or executables. Instead, it processes a user’s legally owned copy of the game — version 1.0.2.1 — transforming its x86-64 binary and RDNA2 GPU shaders into a form compatible with standard PC hardware and Vulkan. While the game cannot yet boot, core components such as shader translation and asset extraction are complete.

How Leonida works under the hood

Leonida leverages the architectural similarity between the Xbox Series X and modern PCs: both use x86-64 CPUs. The project statically recompiles the game’s executable by mapping its PE image and resolving imports through shims for Xbox-specific libraries like GDK and XMem. The 26,503 embedded RDNA2 GPU shaders are extracted from the game’s shaders.rpf, disassembled using LLVM’s gfx1013 target, and translated into SPIR-V for Vulkan compatibility. All translated shaders pass spirv-val validation and include metadata for pipeline creation. The process runs locally — no cloud components or remote decryption.

Current capabilities and limitations

As of now, Leonida can identify and validate a user’s local copy of the game, extract and convert all shaders, and export models (in OBJ format), textures (as DDS), and audio banks (AWC files). Audio is repackaged: Opus streams become Ogg Opus, XMA2 is decoded via ffmpeg, and PCM is saved as WAV if the --wav flag is used. However, booting the game is not yet possible. Major missing pieces include full model layout decoding, the Xbox D3D12-to-Vulkan translation layer, and system register layouts for compute and geometry shaders. The project explicitly states: “Booting, story mode, anything playable — No.”

What it means for developers and businesses

Leonida is not a piracy tool — it requires a pre-decrypted game copy and produces no redistributable output. For developers, it demonstrates advanced reverse engineering of console-specific binaries and GPU pipelines, offering insights into Xbox’s low-level graphics stack and RPF9 archive structure. Businesses in game preservation, cross-platform porting, or emulation may observe its methods for static recompilation and shader translation. However, legal risk remains high: while the project avoids distributing copyrighted material, hosting or sharing outputs derived from game files may violate terms of service. Its GPLv3 license allows modification but does not protect against intellectual property claims from rights holders.

Leonida’s work is technically significant but not yet practical for end users. It represents a foundational step in console-to-PC recompilation, comparable to prior efforts like RPCS3 or Xenia. For now, it serves researchers and reverse engineers — not gamers seeking early access. The project’s reliance on user-provided files and lack of executable progress suggest it will remain a niche technical endeavour unless a compatible game binary becomes available to contributors.

Sources

Leave a Reply

Your email address will not be published. Required fields are marked *