Featured answer
Give me an overview of leonida
leonida is a static recompilation project that runs the Xbox Series version of Grand Theft Auto VI natively on Windows, loading the game's x86-64 code directly on the PC and translating its RDNA2 GPU programs to SPIR-V for Vulkan. The repository does not include the game, so the build uses the user's own copy, and the project is written mainly in Python with some C++ and C# files. make_game.py is the build driver, running the check, shaders, assets, runtime and pipelines stages in order, and its version check compares each package file's name, size and SHA-256 with the supported versions. The shader path runs from tools/shader_carve.py through fssm_unpack.py, shader_disasm.py (LLVM for gfx1013) and rdna2spirv.py, while asset export uses tools/rpf9dump on RPF9 archives and loose .ttpf texture pools. The runtime in runtime/ maps the PE image and redirects its imports to GDK, XMem and d3d12_xs shims, starting at runtime/src/main.cpp, and the finished build is written to Documents\Leonida by default. The architecture chart shows four layers across 389 files: Application with 59, Config with 8, Utility with 78, and Docs & Tooling with 38, so a good place to start is make_game.py and runtime/src/main.cpp.
| Layer | Files |
|---|---|
| Application | 59 |
| Config | 8 |
| Utility | 78 |
| Docs & Tooling | 38 |
Basis: Inferred · knowledge graph· as of 91b36cf