repowiseitsnotrexed/leonida

Architecture of itsnotrexed/leonida

itsnotrexed/leonida is 1,819 source files holding 46,657 symbols across 7 modules, written mainly in Python, C++, Rust. The largest module is tests, with 963 files, and 8 files are entry points into the dependency graph.

How leonida fits together

The input is your own copy of the Xbox Series package, which make_game.py reads from disk to build the port. make_game.py runs the build in stages named check, shaders, assets and runtime, and a stopped build continues where it left off. The directory tools holds standalone Python scripts that translate and check shader, texture, archive and conformance data. The runtime directory contains the native part: runtime/src/main.cpp is its entry point, and runtime/shims maps the game's Direct3D 12 and DXGI calls onto a Vulkan device, forwarding command lists and descriptors along the way. The viewer directory serves the scene viewer's pages and world files to a browser on the local machine.

Largest modules

  • tests: 963 files and 273,770 lines of code
  • runtime: 386 files and 153,888 lines of code
  • tools: 291 files and 149,512 lines of code
  • third_party: 24 files and 6,928 lines of code
  • scripts: 15 files and 3,856 lines of code
  • root: 1 file and 2,391 lines of code
  • viewer: 1 file and 169 lines of code

Languages

By file count: Python 1,250 files, C++ 410 files, Rust 10 files, C# 6 files, C 2 files, JavaScript 2 files.

Documentation

Repowise documents leonida in 1,041 pages generated from the source, 12 of them written explanations of the repository and its modules. Module guides include:

  • root: Application Entry Point
  • scripts: Developer Scripts and CI Checks
  • viewer: Local Asset Viewer
  • tools: Offline Asset Analysis Scripts
  • runtime/src: On the Host Runtime

More on leonida: summary and FAQ, codebase overview, code health.

Related guide: Best dependency graph tools for monorepos