mirror of
https://github.com/pret/pmd-sky.git
synced 2026-09-28 13:24:02 -05:00
c72c3780443ad48c0d77dd2e04b83cadeee3762d
Decompile eight ground-mode setters from asm into src/main_02065B3C.c: SetActorTalkMainAndActorTalkSub, SetActorTalkMain, SetActorTalkSub, SetActorEventMain, SetRandomRequestNpcs1And2, SetRandomRequestNpc03KindVar, SetAllEventNpcs and SetNewFriendActor. Identify the global they write, _020B0B08, as a 28-byte table of slots keyed by the special members of enum script_entity_id (ENTITY_TALK_MAIN 46 through ENTITY_NPC_DEMO_PARTNER 59). Every slot offset is corroborated by both a writer above and the reader that resolves it at the matching entity id: sub_0206549C, reached via GetScriptEntityMonsterId, and sub_02065050, reached via GetActorMatchingStorageId. Name the type struct special_actors and relabel the symbol _020B0B08 -> SPECIAL_ACTORS at its definition in asm/main_rodata_020A2808.s and at every reference. Extracting the block splits asm/main_0205EDA4.s: the trailing functions move verbatim into asm/main_02065BD8.s, the affected .inc files are regenerated, and main.lsf gains the two new objects. Add enum script_entity_id to include/enums.h, taken from pmdsky-debug, since struct special_actors refers to it. No comments are added to any pmd-sky file; comments cannot be checked by the matching build, so the code is left to stand on its own. Authored by Claude (Opus 4.8) under human direction. Confirmed by a matching build: build/pmdsky.us/pmdsky.us.nds: OK. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…
…
…
…
…
Pokémon Mystery Dungeon: Explorers of Sky
This is a WIP disassembly of Pokémon Mystery Dungeon: Explorers of Sky. For instructions on how to set up the repository, please read INSTALL.md. For information on how to contribute changes, see CONTRIBUTING.md.
This repository builds the following ROMs:
- pmdsky.us.nds
sha1: 5fa96ca8d8dd6405d6cd2bad73ed68bc73a9d152 - pmdsky.eu.nds
sha1: c838a5adf1ed32d2da8454976e5b1a1aa189c139 - pmdsky.jp.nds
sha1: 7785138dd343b6f2d0f2c9cadc26b4aa927161d7
For contacts and other pret projects, see pret.github.io.
Description
Languages
Assembly
66.3%
C
18%
C++
7.1%
Boogie
4.3%
sed
1.5%
Other
2.8%