Architecture of seedds/nxnative
seedds/nxnative is 1,658 source files holding 36,574 symbols across 2 modules, written mainly in C#, C, Python. The largest module is dm, with 1,432 files, and 4 files are entry points into the dependency graph.
How nxnative fits together
Input enters through scripts/build_ipa_from_nsp.py, which takes a folder of game files or a .nup file and produces an IPA or a Mac app in the game's folder. The dm/tools/nx_extract project is a C# tool with a LibHac dependency, and its Program.cs is an entry point of the repository. The dm/gfx/nvn directory runs the Nintendo Switch NVN graphics API on Metal, and guest NVN calls enter through its NVN entry file. The dm/host directory runs the game inside a host process on macOS and iOS, answering the game's operating system calls and passing controller, touch, sound and frame-rate data between the game and the platform, with dm/host/main.c as its entry point. The dm/games directory holds per-game profiles that set the port's options and fixes for each supported title.
Largest modules
- dm: 1,432 files and 301,831 lines of code
- scripts: 9 files and 6,346 lines of code
Languages
By file count: C# 357 files, C 324 files, Python 312 files, C++ 269 files, Objectivec 159 files, Swift 9 files.
Documentation
Repowise documents nxnative in 1,420 pages generated from the source, 40 of them written explanations of the repository and its modules. Module guides include:
- dm/third_party/libvpx/vpx_dsp/arm: ARM DSP IDCT Kernels
- dm/third_party/ryujinx/src/Ryujinx.Graphics.Shader/CodeGen: Code Gen
- dm/third_party/ryujinx/src/Ryujinx.Common/Utilities: Common Bit and Buffer Helpers
- dm/third_party/ryujinx/src/Ryujinx.Common/Configuration/Hid/Controller: Controller Input Mapping Bindings
- dm/tools: Dm Tools
More on nxnative: summary and FAQ, codebase overview, code health.
Related guide: Best dependency graph tools for monorepos