How banjorecomp/banjorecomp works
Banjo: Recompiled is a native port of Banjo-Kazooie produced through static recompilation, with RT64 rendering and extensive mod support. The principal workflow is: a player supplies the original game, the launcher/runtime prepares it, and the recompiled game runs with patches and configurable enhancements. The graph preserves documented graphics, audio, input, save, and mod capabilities. Source excerpts are partial, so some subsystem links are dashed where implementation wiring was not shown.
Main entry points: main.cpp Application Runtime · recomp_api.cpp Recomp Game API · config.cpp User Configuration · patches.h Game Patch Framework
Components 21
Launch and Runtime
- Application Runtime
src/main/main.cpp - Launcher Animation
src/main/launcher_animation.cpp - User Configuration
src/game/config.cpp - Platform Support
include/banjo_support.h
Game Integration
- ROM Decompression
src/game/rom_decompression.cpp - Recomp Game API
src/game/recomp_api.cpp - Mod Data API
src/game/recomp_data_api.cpp - Mod Extension API
src/game/recomp_extension_api.cpp - Overlay Registration
src/main/register_overlays.cpp - Patch Registration
src/main/register_patches.cpp - Game Patch Framework
patches/patches.h - Mod Data Storage
lib/SlotMap/slot_map.h
Gameplay Enhancements
- Notes and Jinjos
patches/note_saving.c - Camera Controls
patches/camera_and_axis_inversion_patches.c
Rendering and Audio
- Transform Tagging
patches/transform_tagging.c - HUD Rendering
patches/hud_transform_tagging.c - Graphics Settings
patches/graphics_patches.c - Audio Processing
patches/sound_patches.c
Other components
- Player
- Original Game ROM
- RT64 Renderer
Connections 24
- Player → Application Runtime: starts
README.md - Player → Original Game ROM: provides
README.md - Application Runtime → Launcher Animation: sets up
src/main/main.cpp - Application Runtime → User Configuration: uses settings
src/main/main.cpp - Application Runtime → ROM Decompression: prepares game
- Original Game ROM → ROM Decompression: supplies data
- Application Runtime → Recomp Game API: registers runtime API
- Application Runtime → Overlay Registration: registers overlays
src/main/main.cpp - Application Runtime → Patch Registration: registers patches
src/main/main.cpp - Patch Registration → Game Patch Framework: registers
- Recomp Game API → User Configuration: reads options
src/game/recomp_api.cpp - Recomp Game API → Camera Controls: exposes controls
src/game/recomp_api.cpp - Recomp Game API → Graphics Settings: exposes settings
- Mod Data API → Mod Data Storage: stores mod data
src/game/recomp_data_api.cpp - Mod Extension API → Mod Data Storage: stores extensions
src/game/recomp_extension_api.cpp - Mod Extension API → Game Patch Framework: uses patch helpers
- Game Patch Framework → Notes and Jinjos: enables save patches
patches/note_saving.c - User Configuration → Notes and Jinjos: configures saving
- User Configuration → Camera Controls: configures camera
- Transform Tagging → RT64 Renderer: tags transforms
- HUD Rendering → RT64 Renderer: tags HUD rendering
- Graphics Settings → RT64 Renderer: configures rendering
- Audio Processing → Application Runtime: provides audio
- Platform Support → Application Runtime: provides platform services
src/main/main.cpp