mirror of
https://github.com/pret/pmd-sky.git
synced 2026-09-28 05:07:58 -05:00
fb757337d0da4b7e95521ec163cab8ca7b6a17d1
Decompile from asm: GetWindowIdSelectedItemOnPage 0x0202AB80 CloseSimpleMenu 0x0202B4C4 IsSimpleMenuActive 0x0202B520 CheckSimpleMenuField0x1A0 0x0202B540 GetSimpleMenuField0x1A4 0x0202B558 These are the simple-menu counterparts of the parent-menu accessors in the previous commit and reach the same window contents through GetWindowContents, so they reuse struct unk_0202AAA8, which gains a field at 0x1A4. IsSimpleMenuActive tests states 7 and 8 where the parent-menu version tests 8 and 9. As there, the state is bound to a local: comparing the field against two values inline emits two loads and the target loads it once. DeleteWindow moves into the shared header and MemFree is taken from main_02001188.h, rather than each source declaring them again. Two of these functions need both, and a second local copy of a prototype is the kind of disagreement no build can report. The asm files this split produces keep upstream's jump-table annotations. An earlier run of precommit.py stripped them, having discarded the removals that rule 2 matches against; that is fixed separately in the workspace repo, and the 158 comments in this split are intact here. No comments are added to any pmd-sky file. Authored by Claude (Opus 5) under human direction. Confirmed by a matching build: build/pmdsky.us/pmdsky.us.nds: OK. Co-Authored-By: Claude Opus 5 <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%