How pret/pokeplatinum works
Pokémon Platinum is a Nintendo DS role-playing game reconstructed as a decompilation. Its runtime spans field exploration and activities, battles, menus and collection management, communication features, and story sequences. The graph emphasizes substantial modules named in the SOURCE INDEX and shared runtime foundations. It does not claim a single end-to-end user workflow: the README identifies the game and ROMs, but does not document runtime flows. Edges are limited to relationships visible in indexed references or excerpts; unsampled connections are omitted.
Main entry points: comm_manager.c Communication Manager · g3d_pipeline.c 3D Pipeline · manager.c Underground · frontier_script_manager.c Frontier Scripts
Components 22
Core Gameplay
- Battle Control
src/battle/battle_controller_player.c - Battle Commands
include/battle/battle_controller.h - Field Effects
src/overlay005/field_effect_manager.c - Underground
src/underground/manager.c - Frontier Scripts
src/overlay104/frontier_script_manager.c
Player Applications
- Capsule Menu
src/applications/capsule_menu/manager.c - Pokémon Storage
src/applications/pc_boxes/box_app_manager.c - Storage Session
include/applications/pc_boxes/pokemon_storage_session.h - End Credits
src/cutscenes/end_credits/main.c
Communication
- Global Trade
src/gts_application/application.c - Trade Networking
src/gts_application/screens/network_handler.c - Communication Manager
src/comm_manager.c - Nintendo WFC
src/nintendo_wfc/main.c
Runtime Foundations
- Save Data
include/savedata.h - Pokémon Data
include/pokemon.h - NARC Archives
include/narc.h - Message Loading
include/message.h - 3D Pipeline
src/g3d_pipeline.c - Task Scheduler
include/sys_task_manager.h - System Runtime
include/system.h - Heap Manager
include/heap.h
Other components
- Player
Connections 17
- Battle Control → Battle Commands: uses commands
src/battle/battle_controller_player.c - Battle Commands → Battle Control: uses context
include/battle/battle_controller.h - Underground → Save Data: reads save
src/underground/manager.c - Underground → Field Effects: uses field effects
src/underground/manager.c - Frontier Scripts → Message Loading: loads messages
src/overlay104/frontier_script_manager.c - Frontier Scripts → NARC Archives: reads archives
src/overlay104/frontier_script_manager.c - Capsule Menu → 3D Pipeline: uses graphics
src/applications/capsule_menu/manager.c - Pokémon Storage → Storage Session: uses session
src/applications/pc_boxes/box_app_manager.c - Pokémon Storage → Pokémon Data: uses Pokémon data
src/applications/pc_boxes/box_app_manager.c - Global Trade → Trade Networking: routes screens
src/gts_application/application.c - Communication Manager → Save Data: uses savedata
src/comm_manager.c - Communication Manager → Nintendo WFC: uses WFC
src/comm_manager.c - Nintendo WFC → Communication Manager: uses communication
src/nintendo_wfc/main.c - End Credits → 3D Pipeline: uses 3D pipeline
src/cutscenes/end_credits/main.c - End Credits → Message Loading: uses messages
src/cutscenes/end_credits/main.c - System Runtime → Task Scheduler: holds task managers
include/system.h - 3D Pipeline → Heap Manager: uses heap IDs
src/g3d_pipeline.c