Files
pmd-sky/include/main_0202BA0C.h
cecilarmitais ec362491e1 Decomp six menu and text-box setters
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>
2026-08-17 01:06:05 -07:00

7 lines
127 B
C

#ifndef PMDSKY_MAIN_0202BA0C_H
#define PMDSKY_MAIN_0202BA0C_H
void SetSimpleMenuField0x1AC(s32 window_id, s32 value);
#endif