Following the console debut of Grand Theft Auto VI, a GitHub repository named Leonida by developer ItsNotRexed sparked widespread attention across gaming forums and developer communities. The repository promises an ambitious engineering goal: a native static recompilation of the Xbox Series version of the game for Windows PCs.

Social media posts quickly claimed that a working PC port had arrived overnight. The engineering reality is vastly different: Leonida is an early-stage reverse engineering toolchain. The project cannot boot the game, render a title screen, or execute gameplay. Understanding what the project has actually accomplished, and what remains unsolved, offers a window into modern console recompilation.

What Static Recompilation Means

Traditional console emulation interprets binary machine code or retranslates it at runtime using just-in-time compilers. Static recompilation takes an entirely different approach:

  1. Ahead-of-Time Translation: The compiled machine code of the original console game is disassembled and translated into clean C or C++ source code or intermediate representation ahead of time.
  2. Native Recompilation: The translated C code is compiled using modern native PC compilers like Clang or MSVC, yielding a native x86_64 Windows executable.
  3. API Shim Mapping: Console-specific operating system calls, memory managers, and graphics commands are routed through custom shim libraries that map them to Windows APIs and Vulkan.

This architecture powered successful community PC ports of classic Nintendo 64 games such as Super Mario 64 and The Legend of Zelda: Ocarina of Time. Applying this technique to a 200 GB modern title built for AMD Zen 2 and RDNA2 hardware, however, introduces engineering complexity orders of magnitude greater than 1990s microcode.

What Leonida Has Built So Far

The project is structured around asset inspection, resource extraction, and shader translation tools:

ComponentEngineering StatusImplementation Details
RDNA2 Shader TranslationFunctional26,503 native shaders carved and translated to SPIR-V; verified with spirv-val
Wavefront Mesh ExportFunctionalModels extracted to OBJ format with UVs and material groupings
Texture ParsingFunctionalDDS format support across standard texture dictionaries
Audio Bank DecodingFunctionalAWC containers unpacked; Opus repacked losslessly, XMA2 decoded via ffmpeg
PE Executable LoaderSkeleton OnlyHeader declarations written; no binary loading or relocations functional
Xbox D3D12 to VulkanDesign PhaseArchitectural planning for memory management; zero command queue proxies active
Game ExecutionNot BootableCannot initialize memory, boot kernel shims, or run game loop

The standout achievement in the current code is the shader pipeline. The developers carved 26,503 native RDNA2 shaders out of the game package, spanning 2,236 vertex shaders, 12,101 pixel shaders, 2,689 compute shaders, 9,282 mesh shaders, and 195 geometry shaders. These have been converted into valid SPIR-V intermediate code.

Because 21,545 of those shaders utilize AMD wave64 execution, running them accurately on 32-wide NVIDIA GPU warps will require specialized subgroup mapping layers to avoid race conditions.

The Massive Roadblocks Remaining

Converting static assets and shaders is only the first step. The hardest parts of modern console recompilation remain untouched in Leonida:

  • Proprietary OS Services: Xbox Series consoles execute games inside an operating system partition with custom synchronization primitives, IO completion ports, and security isolation. Every single kernel function must be painstakingly reimplemented from scratch.
  • Direct3D 12 Extension Shims: The console Direct3D 12 API includes low-level hardware optimizations (xmem and d3d12_xs) that do not exist in standard PC DirectX. Creating a translation layer that maps these commands to Vulkan without crashing requires hundreds of custom driver shims.
  • Dynamic Code and Memory Management: Modern game engines allocate memory dynamically using custom virtual memory allocators. Emulating these allocators without causing memory access violations on Windows takes months of debugging.

Leonida does not distribute copyrighted game code, textures, or audio. The project is designed as an offline builder that requires users to supply their own legally dumped console files.

For PC gamers hoping to explore Vice City on their graphics cards, projects like Leonida represent technical research rather than a near-term gaming solution. Reverse engineering a modern AAA title without official source code is an effort spanning years. For software engineers and emulation enthusiasts, however, the project provides an educational look at modern asset architectures and cross-platform shader compilation.