How harbourmasters/shipwright works
Ship of Harkinian is a desktop Ocarina of Time game client built on libultraship and decompilation-derived game code. The principal workflow is to provide a supported ROM, extract its assets into an archive, launch the client, and play with configurable controls and graphics. The repository also includes save management, randomizer behavior, gameplay enhancements, custom messages, and Anchor networking. The README documents the product capabilities; source excerpts and the source index support only selected internal relationships, so unverified wiring is omitted.
Main entry points: z64.h Game engine · GameInteractor.h Gameplay hooks · hook_handlers.cpp Randomizer · main.c Game startup
Components 20
Startup and assets
- Game startup
soh/src/code/main.c - Asset extraction
soh/soh/OTRGlobals.h - Asset resources
soh/soh/ResourceManagerHelpers.cpp - Custom asset archives
Game runtime
- Game engine
soh/include/z64.h - Engine functions
soh/include/functions.h - Engine state
soh/include/variables.h - Game loop
soh/src/code/main.c - Controller input
soh/src/libultra/io/controller.c - Graphics backends
Gameplay systems
- Save management
soh/soh/SaveManager.cpp - Randomizer
soh/soh/Enhancements/randomizer/hook_handlers.cpp - Randomizer context
soh/soh/Enhancements/randomizer/SeedContext.h - Gameplay hooks
soh/soh/Enhancements/game-interactor/GameInteractor.h - Gameplay enhancements
soh/soh/Enhancements/enhancementTypes.h
Client features
- Custom messages
soh/soh/Enhancements/custom-message/CustomMessageManager.cpp - Controls and settings
soh/soh/Enhancements/controls/Mapper.cpp - Anchor networking
soh/soh/Network/Anchor/HookHandlers.cpp
Other components
- Player
- Supported ROM
Connections 18
- Player → Game startup: launches
README.md - Supported ROM → Asset extraction: provides assets
README.md - Asset extraction → Asset resources: makes archives
soh/soh/ResourceManagerHelpers.cpp - Custom asset archives → Asset resources: loads archives
README.md - Game startup → Game loop: starts
soh/src/code/main.c - Game loop → Game engine: runs
- Controller input → Game engine: supplies input
- Game engine → Engine functions: uses APIs
soh/include/functions.h - Game engine → Engine state: uses state
soh/include/variables.h - Game engine → Graphics backends: renders through
README.md - Player → Controls and settings: configures
README.md - Player → Custom asset archives: installs
README.md - Save management → Randomizer context: persists settings
soh/soh/SaveManager.cpp - Randomizer → Randomizer context: reads context
soh/soh/Enhancements/randomizer/hook_handlers.cpp - Randomizer → Gameplay hooks: uses hooks
soh/soh/Enhancements/randomizer/hook_handlers.cpp - Gameplay enhancements → Gameplay hooks: registers behavior
- Player → Custom messages: reads messages
- Anchor networking → Gameplay hooks: uses hooks
soh/soh/Network/Anchor/HookHandlers.cpp