mirror of
https://github.com/pret/pmd-sky.git
synced 2026-09-27 12:47:39 -05:00
45761ded0779d9db06fb6b71be903c4826e5befe
Decompile GetHero, GetPartner, GetMainCharacter1, GetMainCharacter2 and GetMainCharacter3 from asm/main_02054E4C.s. Each returns a pointer to a struct ground_monster in TEAM_MEMBER_TABLE_PTR->members, or NULL when that entry's is_valid bit is clear: GetHero returns members[0], GetPartner members[1], and the GetMainCharacter functions pick the index from the game mode -- members[2]/[3]/[4] during a special episode, members[0]/[1]/NULL otherwise. They merge into a new src/main_02055770.c; extracting them splits asm/main_02054E4C.s, the trailing functions move verbatim into asm/main_02055894.s, and main.lsf gains the two objects. Their prototypes were temporarily declared in main_02064FFC.h for the previous commits; they move to the new main_02055770.h, which main_02064FFC.h now includes. sub_02056914 keeps its prototype there since it is still asm. No new names are introduced. struct ground_monster and struct team_member_table already exist in common.h, and these six function names were already labelled in the tree; this commit only fills in bodies. Decompiling these confirms by construction what the previous commits declared: the accessors return struct ground_monster*, so the ->id reads that feed the monster-id output of sub_0206549C are reading struct ground_monster::id, the documented "Monster ID" field. No comments are added to any pmd-sky file. 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%