How nepjr/oot-nx works
This repository is a work-in-progress decompilation of The Legend of Zelda: Ocarina of Time, not a PC port. Its principal user-facing workflow is the game runtime: startup initializes system services, a graph thread drives gameplay and presentation, and the player interacts with a world of scenes and actors. The tree also shows distinct audio, save, effects, and interface subsystems. The sampled main and overlay-manager files support only a few concrete runtime links; other subsystem connections are omitted rather than inferred.
Main entry points: main.c Main initialization · z_kaleido_manager.c Interface and menus · sched.c Scheduler · load.c Overlay loading
Components 16
Runtime and scheduling
- Main initialization
src/code/main.c - Scheduler
src/code/sched.c - Game state
src/code/game.c - Overlay loading
src/code/load.c
World and gameplay
- Scene and room loading
src/code/z_scene.c - Actor systems
src/code/z_actor.c - Player actor
src/overlays/actors/ovl_player_actor/z_player.c - Collision checks
src/code/z_collision_check.c - Camera
src/code/z_camera.c
Presentation
- Interface and menus
src/code/z_kaleido_manager.c - Graphics pipeline
src/code/graph.c - Effects
src/code/z_effect.c
Platform services
- Audio system
src/code/audioMgr.c - Controller input
src/libultra/io/controller.c - Save data
src/code/z_sram.c
Other components
- Player
Connections 7
- Main initialization → Controller input: initializes
src/code/main.c - Main initialization → Audio system: unlocks
src/code/main.c - Main initialization → Graphics pipeline: starts thread
src/code/main.c - Main initialization → Scheduler: initializes
src/code/main.c - Main initialization → Interface and menus: initializes
- Interface and menus → Overlay loading: loads overlays
src/code/z_kaleido_manager.c - Player → Main initialization: starts game