How yokimitsuro/khdays-port works
khdays-port is a native PC port of Kingdom Hearts 358/2 Days, with an accompanying mod studio and multiplayer server. The main workflow is a player launching the port with extracted game data, then playing through game logic backed by PC implementations of DS services; the port also supplies modern rendering, input, audio, saves, and replaceable content. The README documents these capabilities, but most runtime source was not sampled, so subsystem links are included only where the README or excerpts support them.
Main entry points: app.cpp Studio Application · core DS Services · net_session.c Game Sessions · display.c Graphics Runtime
Components 23
Game Runtime
- Decompiled Game
- DS Services
port/runtime/core - Menus and Gameplay
port/runtime/menus - Controls
port/runtime/input/input.c - Session Logging
port/runtime/core/session_log.c
PC Platform
- Host Application
port/host/app - Settings Menu
port/host/settings/settings_menu.cpp - Host Networking
port/host/net/net.h
Graphics and Media
- Graphics Runtime
port/runtime/display/display.c - GPU Emulation
port/gpu/gpu2d.c - PC Renderer
port/host/render/gpu_present.c - HD Movie Support
port/host/movies/movie_hd_win.c - Sound Driver
port/sound/snd7_seq.c
Content and Mods
- Game File Access
port/runtime/core/files.c - Runtime Mod Support
port/runtime/mods - Single-Screen Layouts
port/ui/composition.c
Multiplayer
- Game Sessions
port/runtime/net/net_session.c - Room Server
port/server/server.c
Mod Studio
- Studio Application
studio/app/app.cpp - Asset Catalog
studio/core/files/catalog.cpp - Sheet Editing
studio/core/sheets/sheets.cpp - Asset Views
studio/app/views
Other components
- Player
Connections 19
- Player → Host Application: launches
README.md - Decompiled Game → DS Services: uses
README.md - DS Services → Game File Access: reads game files
README.md - DS Services → Session Logging: records activity
README.md - Player → Controls: provides controls
README.md - Decompiled Game → Graphics Runtime: requests graphics
README.md - Graphics Runtime → GPU Emulation: uses reference engines
README.md - PC Renderer → Graphics Runtime: draws frames
README.md - Player → Settings Menu: configures
README.md - Decompiled Game → Sound Driver: requests audio
README.md - Game File Access → Runtime Mod Support: loads replacements
README.md - Player → Single-Screen Layouts: enables mode
README.md - Decompiled Game → Game Sessions: uses multiplayer
README.md - Game Sessions → Host Networking: sends datagrams
port/runtime/net/net_session.c - Game Sessions → Room Server: announces rooms
port/runtime/net/net_session.c - Player → Studio Application: edits content
README.md - Studio Application → Asset Catalog: builds catalog
studio/app/app.cpp - Studio Application → Asset Views: displays assets
- Studio Application → Sheet Editing: exports sheets