mirror of
https://github.com/pret/pmd-sky.git
synced 2026-09-27 04:38:15 -05:00
Decompile from asm: GetAdvancedMenuCurrentOption 0x0202BCFC GetWindowIdSelectedMenuItemIdx 0x0202C748 IsDialogueBoxActive 0x0202F180 GetWindowIdPageStart 0x02030A18 GetAdvancedTextBoxFlags2 0x02030A40 GetSelectedMenuItemIdx 0x02032578 GetSelectedMenuItemIdx computes the absolute item index from the paging struct added in the previous commit, current page times items per page plus the selection within the page, which the target folds into one mla. GetWindowIdPageStart, GetWindowIdSelectedMenuItemIdx and GetAdvancedMenuCurrentOption resolve a window and forward to the paging functions at offset 4 of its contents. The last two have identical bodies and are decompiled as written rather than one calling the other, since that is what the target does. struct unk_0202AAA8 gains two fields the other two functions read: a byte at 0x8 and a word at 0x1B0. The filler before 0x198 is split to expose the first without moving anything after it. 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>
7 lines
120 B
C
7 lines
120 B
C
#ifndef PMDSKY_MAIN_0202BCFC_H
|
|
#define PMDSKY_MAIN_0202BCFC_H
|
|
|
|
s32 GetAdvancedMenuCurrentOption(s32 window_id);
|
|
|
|
#endif
|