mirror of
https://github.com/pret/pmd-sky.git
synced 2026-09-27 12:47:39 -05:00
Decompile from asm: SetSimpleMenuField0x1AC 0x0202BA0C CloseAdvancedMenu 0x0202BC44 IsAdvancedMenuActive2 0x0202BCBC SetAdvancedTextBoxField0x1C4 0x020307A4 SetAdvancedTextBoxField0x1C2 0x0203083C SetAdvancedTextBoxState5 0x0203088C struct unk_0202AAA8 gains fields at 0x1AC, 0x1BC, 0x1C2, 0x1C3 and 0x1C4. The filler that stood between 0x1A8 and 0x1B0 is split to expose 0x1AC; nothing after it moves. CloseAdvancedMenu differs from the simple- and parent-menu versions: it frees only the window contents, not the pointer at 0x198 those two free first. That is what the target does and is not an omission here. IsAdvancedMenuActive2 tests the same states as IsSimpleMenuActive, 7 and 8, and like it binds the state to a local so the field is loaded once. SetAdvancedTextBoxField0x1C2 stores a constant 1 rather than an argument, so it takes only the window id. 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
127 B
C
7 lines
127 B
C
#ifndef PMDSKY_MAIN_0202BA0C_H
|
|
#define PMDSKY_MAIN_0202BA0C_H
|
|
|
|
void SetSimpleMenuField0x1AC(s32 window_id, s32 value);
|
|
|
|
#endif
|