From 4eece9fad7f762613d2f18968eab661d9b00882e Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 14:25:36 -0500 Subject: [PATCH 01/10] match(iplSetting 107/112): initKeyboard + data symbol pairing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit initKeyboard: drop zero-inits on rowLimit/stringLimit, decl order for callee-saved regs, KeyboardSetting field store order (IPL_SETTING layout), Zi dictionary temps evaluated system-then-oem for arg regs. symbols.txt: shrink scAnmTable to 0xE8 and name absorbed rodata literals; add missing .data @string literals in unlabeled gaps; rename .sdata lbl_* to matching @ names so .data relocs pair (.data fuzzy 71%→97%). --- config/43U/symbols.txt | 230 +++++++++++++++++++------------ src/scene/setting/iplSetting.cpp | 14 +- 2 files changed, 147 insertions(+), 97 deletions(-) diff --git a/config/43U/symbols.txt b/config/43U/symbols.txt index 9294305e..7cf16759 100644 --- a/config/43U/symbols.txt +++ b/config/43U/symbols.txt @@ -13904,10 +13904,15 @@ lbl_81610608 = .rodata:0x81610608; // type:object size:0x300 lbl_81610908 = .rodata:0x81610908; // type:object size:0x10 sCaptureSizes__Q23ipl5scene = .rodata:0x81610918; // type:object size:0x10 lbl_81610928 = .rodata:0x81610928; // type:object size:0x20 data:4byte -scAnmTable__Q23ipl5scene = .rodata:0x81610948; // type:object size:0x1A8 scope:local -lbl_81610AF0 = .rodata:0x81610AF0; // type:object size:0x30 data:4byte -lbl_81610B20 = .rodata:0x81610B20; // type:object size:0x60 data:4byte -lbl_81610B80 = .rodata:0x81610B80; // type:object size:0x20 data:wstring +scAnmTable__Q23ipl5scene = .rodata:0x81610948; // type:object size:0xE8 scope:local +@17203 = .rodata:0x81610A30; // type:object size:0x1C scope:local +@17212 = .rodata:0x81610A4C; // type:object size:0x30 scope:local +@17223 = .rodata:0x81610A7C; // type:object size:0x28 scope:local +@17227 = .rodata:0x81610AA4; // type:object size:0x30 scope:local +@17254 = .rodata:0x81610AD4; // type:object size:0x1C scope:local +@18816 = .rodata:0x81610AF0; // type:object size:0x30 scope:local data:4byte +@18818 = .rodata:0x81610B20; // type:object size:0x60 scope:local data:4byte +@19272 = .rodata:0x81610B80; // type:object size:0x20 scope:local data:wstring scNumber__Q23ipl5scene = .rodata:0x81610BA0; // type:object size:0x14 scope:local data:2byte scNumber2__Q23ipl5scene = .rodata:0x81610BB4; // type:object size:0x14 scope:local data:2byte lbl_81610BC8 = .rodata:0x81610BC8; // type:object size:0x1000 @@ -17165,7 +17170,23 @@ sSettingAPPaneNames__Q23ipl5scene = .data:0x81656978; // type:object size:0x68 d sSettingAPAnimations__Q23ipl5scene = .data:0x81656B6C; // type:object size:0x4C data:4byte @25442 = .data:0x81656BB8; // type:object size:0xF scope:local data:string @25443 = .data:0x81656BC7; // type:object size:0x1C scope:local data:string +@25501 = .data:0x81656BE3; // type:object size:0xF scope:local data:string +@25502 = .data:0x81656BF2; // type:object size:0x14 scope:local data:string +@25503 = .data:0x81656C06; // type:object size:0x18 scope:local data:string +@25505 = .data:0x81656C1E; // type:object size:0x1A scope:local data:string +@25506 = .data:0x81656C38; // type:object size:0x13 scope:local data:string +@25508 = .data:0x81656C4B; // type:object size:0x9 scope:local data:string +@25509 = .data:0x81656C54; // type:object size:0x12 scope:local data:string +@25510 = .data:0x81656C66; // type:object size:0xC scope:local data:string +@25616 = .data:0x81656C72; // type:object size:0xD scope:local data:string @25618 = .data:0x81656C7F; // type:object size:0xF scope:local data:string +@25620 = .data:0x81656C8E; // type:object size:0x14 scope:local data:string +@25621 = .data:0x81656CA2; // type:object size:0x1A scope:local data:string +@25622 = .data:0x81656CBC; // type:object size:0x19 scope:local data:string +@25623 = .data:0x81656CD5; // type:object size:0xE scope:local data:string +@25624 = .data:0x81656CE3; // type:object size:0x13 scope:local data:string +@25625 = .data:0x81656CF6; // type:object size:0x18 scope:local data:string +@25628 = .data:0x81656D0E; // type:object size:0x19 scope:local data:string @17193 = .data:0x81656D27; // type:object size:0xC scope:local data:string @17194 = .data:0x81656D33; // type:object size:0x20 scope:local data:string @17197 = .data:0x81656D53; // type:object size:0xD scope:local data:string @@ -17179,10 +17200,32 @@ sSettingAPAnimations__Q23ipl5scene = .data:0x81656B6C; // type:object size:0x4C @17250 = .data:0x81656DFA; // type:object size:0x11 scope:local data:string @17251 = .data:0x81656E0B; // type:object size:0x9 scope:local data:string @17252 = .data:0x81656E14; // type:object size:0xD scope:local data:string +@25720 = .data:0x81656E21; // type:object size:0x23 scope:local data:string +@25721 = .data:0x81656E44; // type:object size:0xD scope:local data:string +@25722 = .data:0x81656E51; // type:object size:0xD scope:local data:string +@25723 = .data:0x81656E5E; // type:object size:0xD scope:local data:string +@25724 = .data:0x81656E6B; // type:object size:0x25 scope:local data:string +@25726 = .data:0x81656E90; // type:object size:0x15 scope:local data:string @25747 = .data:0x81656EA5; // type:object size:0x1B scope:local data:string +@25766 = .data:0x81656EC0; // type:object size:0x1D scope:local data:string +@25767 = .data:0x81656EDD; // type:object size:0x11 scope:local data:string +@25768 = .data:0x81656EEE; // type:object size:0x1D scope:local data:string @26292 = .data:0x81656F0B; // type:object size:0xF scope:local data:string +@26293 = .data:0x81656F1A; // type:object size:0xD scope:local data:string +@26294 = .data:0x81656F27; // type:object size:0x11 scope:local data:string +@26295 = .data:0x81656F38; // type:object size:0x11 scope:local data:string +@26296 = .data:0x81656F49; // type:object size:0xA scope:local data:string +@26297 = .data:0x81656F53; // type:object size:0xD scope:local data:string @26300 = .data:0x81656F60; // type:object size:0x1A0 scope:local @26299 = .data:0x81657100; // type:object size:0x48 scope:local +@26346 = .data:0x81657148; // type:object size:0x26 scope:local data:string +@26347 = .data:0x8165716E; // type:object size:0xF scope:local data:string +@26348 = .data:0x8165717D; // type:object size:0xE scope:local data:string +@26349 = .data:0x8165718B; // type:object size:0xA scope:local data:string +@26350 = .data:0x81657195; // type:object size:0xB scope:local data:string +@26351 = .data:0x816571A0; // type:object size:0x16 scope:local data:string +@26353 = .data:0x816571B6; // type:object size:0x11 scope:local data:string +@26354 = .data:0x816571C7; // type:object size:0x16 scope:local data:string @26502 = .data:0x816571DD; // type:object size:0xF scope:local data:string @26534 = .data:0x816571EC; // type:object size:0x18 scope:local data:string @26536 = .data:0x81657204; // type:object size:0x44 scope:local @@ -17216,6 +17259,11 @@ sSettingAPAnimations__Q23ipl5scene = .data:0x81656B6C; // type:object size:0x4C @28326 = .data:0x81657642; // type:object size:0x2A scope:local data:string @28370 = .data:0x8165766C; // type:object size:0x10 scope:local data:string @28383 = .data:0x8165767C; // type:object size:0x14 scope:local data:string +@28436 = .data:0x81657690; // type:object size:0x16 scope:local data:string +@28437 = .data:0x816576A6; // type:object size:0xF scope:local data:string +@28438 = .data:0x816576B5; // type:object size:0x13 scope:local data:string +@28439 = .data:0x816576C8; // type:object size:0x1A scope:local data:string +@28440 = .data:0x816576E2; // type:object size:0x1B scope:local data:string @28442 = .data:0x81657700; // type:object size:0x84 scope:local __vt__Q33ipl5scene7APEvent = .data:0x81657784; // type:object size:0x18 __vt__Q33ipl5scene7Setting = .data:0x8165779C; // type:object size:0x68 @@ -22373,93 +22421,93 @@ lbl_81696FD0 = .sdata:0x81696FD0; // type:object size:0x6 data:wstring lbl_81696FD6 = .sdata:0x81696FD6; // type:object size:0x4 data:wstring lbl_81696FDA = .sdata:0x81696FDA; // type:object size:0x7 data:string lbl_81696FE1 = .sdata:0x81696FE1; // type:object size:0x7 data:string -lbl_81696FE8 = .sdata:0x81696FE8; // type:object size:0x6 data:string -lbl_81696FEE = .sdata:0x81696FEE; // type:object size:0x6 data:string -lbl_81696FF4 = .sdata:0x81696FF4; // type:object size:0x6 data:string -lbl_81696FFA = .sdata:0x81696FFA; // type:object size:0x6 data:string -lbl_81697000 = .sdata:0x81697000; // type:object size:0x7 data:string -lbl_81697007 = .sdata:0x81697007; // type:object size:0x7 data:string -lbl_81697010 = .sdata:0x81697010; // type:object size:0x8 data:4byte -lbl_81697018 = .sdata:0x81697018; // type:object size:0x8 data:string -lbl_81697020 = .sdata:0x81697020; // type:object size:0x8 data:string -lbl_81697028 = .sdata:0x81697028; // type:object size:0x8 data:string -lbl_81697030 = .sdata:0x81697030; // type:object size:0x8 data:string -lbl_81697038 = .sdata:0x81697038; // type:object size:0x8 data:string -lbl_81697040 = .sdata:0x81697040; // type:object size:0x8 data:string -lbl_81697048 = .sdata:0x81697048; // type:object size:0x6 data:string -lbl_8169704E = .sdata:0x8169704E; // type:object size:0x6 data:string -lbl_81697054 = .sdata:0x81697054; // type:object size:0x6 data:string -lbl_8169705A = .sdata:0x8169705A; // type:object size:0x6 data:string -lbl_81697060 = .sdata:0x81697060; // type:object size:0x6 data:string -lbl_81697066 = .sdata:0x81697066; // type:object size:0x6 data:string -lbl_8169706C = .sdata:0x8169706C; // type:object size:0x7 data:string -lbl_81697073 = .sdata:0x81697073; // type:object size:0x7 data:string -lbl_8169707A = .sdata:0x8169707A; // type:object size:0x8 data:string -lbl_81697082 = .sdata:0x81697082; // type:object size:0x7 data:string -lbl_81697089 = .sdata:0x81697089; // type:object size:0x6 data:string -lbl_8169708F = .sdata:0x8169708F; // type:object size:0x6 data:string -lbl_81697095 = .sdata:0x81697095; // type:object size:0x6 data:string -lbl_8169709B = .sdata:0x8169709B; // type:object size:0x6 data:string -lbl_816970A1 = .sdata:0x816970A1; // type:object size:0x6 data:string -lbl_816970A7 = .sdata:0x816970A7; // type:object size:0x6 data:string -lbl_816970AD = .sdata:0x816970AD; // type:object size:0x6 data:string -lbl_816970B3 = .sdata:0x816970B3; // type:object size:0x6 data:string -lbl_816970B9 = .sdata:0x816970B9; // type:object size:0x8 data:string -lbl_816970C1 = .sdata:0x816970C1; // type:object size:0x8 data:string -lbl_816970C9 = .sdata:0x816970C9; // type:object size:0x8 data:string -lbl_816970D1 = .sdata:0x816970D1; // type:object size:0x8 data:string -lbl_816970D9 = .sdata:0x816970D9; // type:object size:0x8 data:string -lbl_816970E1 = .sdata:0x816970E1; // type:object size:0x8 data:string -lbl_816970E9 = .sdata:0x816970E9; // type:object size:0x4 data:string -lbl_816970ED = .sdata:0x816970ED; // type:object size:0x4 data:string -lbl_816970F1 = .sdata:0x816970F1; // type:object size:0x5 data:string -lbl_816970F6 = .sdata:0x816970F6; // type:object size:0x4 data:string -lbl_816970FA = .sdata:0x816970FA; // type:object size:0x7 data:string -lbl_81697101 = .sdata:0x81697101; // type:object size:0x7 data:string -lbl_81697108 = .sdata:0x81697108; // type:object size:0x3 data:string -lbl_8169710B = .sdata:0x8169710B; // type:object size:0x6 data:string -lbl_81697111 = .sdata:0x81697111; // type:object size:0x7 data:string -lbl_81697118 = .sdata:0x81697118; // type:object size:0x6 data:string -lbl_8169711E = .sdata:0x8169711E; // type:object size:0x1 -lbl_8169711F = .sdata:0x8169711F; // type:object size:0x6 data:string -lbl_81697125 = .sdata:0x81697125; // type:object size:0x6 data:string -lbl_8169712B = .sdata:0x8169712B; // type:object size:0x6 data:string -lbl_81697131 = .sdata:0x81697131; // type:object size:0x4 data:string -lbl_81697135 = .sdata:0x81697135; // type:object size:0x4 data:string -lbl_81697139 = .sdata:0x81697139; // type:object size:0x4 data:string -lbl_8169713D = .sdata:0x8169713D; // type:object size:0x4 data:string -lbl_81697141 = .sdata:0x81697141; // type:object size:0x4 data:string -lbl_81697145 = .sdata:0x81697145; // type:object size:0x4 data:string -lbl_81697149 = .sdata:0x81697149; // type:object size:0x4 data:string -lbl_8169714D = .sdata:0x8169714D; // type:object size:0x4 data:string -lbl_81697151 = .sdata:0x81697151; // type:object size:0x4 data:string -lbl_81697155 = .sdata:0x81697155; // type:object size:0x8 data:string -lbl_8169715D = .sdata:0x8169715D; // type:object size:0x6 data:string -lbl_81697163 = .sdata:0x81697163; // type:object size:0x7 data:string -lbl_8169716A = .sdata:0x8169716A; // type:object size:0x4 data:string -lbl_8169716E = .sdata:0x8169716E; // type:object size:0x5 data:string -lbl_81697173 = .sdata:0x81697173; // type:object size:0x7 data:string -lbl_8169717A = .sdata:0x8169717A; // type:object size:0x5 data:string -lbl_8169717F = .sdata:0x8169717F; // type:object size:0x5 data:string -lbl_81697184 = .sdata:0x81697184; // type:object size:0x5 data:string -lbl_8169718A = .sdata:0x8169718A; // type:object size:0x2 -lbl_8169718C = .sdata:0x8169718C; // type:object size:0x3 data:string -lbl_8169718F = .sdata:0x8169718F; // type:object size:0x2 data:string -lbl_81697191 = .sdata:0x81697191; // type:object size:0x2 data:string -lbl_81697193 = .sdata:0x81697193; // type:object size:0x2 data:string -lbl_81697195 = .sdata:0x81697195; // type:object size:0x2 data:string -lbl_81697197 = .sdata:0x81697197; // type:object size:0x2 data:string -lbl_81697199 = .sdata:0x81697199; // type:object size:0x6 data:string -lbl_8169719F = .sdata:0x8169719F; // type:object size:0x6 data:string -lbl_816971A5 = .sdata:0x816971A5; // type:object size:0x6 data:string -lbl_816971AB = .sdata:0x816971AB; // type:object size:0x6 data:string -lbl_816971B1 = .sdata:0x816971B1; // type:object size:0x6 data:string -lbl_816971B7 = .sdata:0x816971B7; // type:object size:0x6 data:string -lbl_816971BD = .sdata:0x816971BD; // type:object size:0x6 data:string -lbl_816971C3 = .sdata:0x816971C3; // type:object size:0x6 data:string -lbl_816971C9 = .sdata:0x816971C9; // type:object size:0x7 data:string -lbl_816971D0 = .sdata:0x816971D0; // type:object size:0x3 data:string -lbl_816971D4 = .sdata:0x816971D4; // type:object size:0x8 data:wstring +@16789 = .sdata:0x81696FE8; // type:object size:0x6 data:string +@16790 = .sdata:0x81696FEE; // type:object size:0x6 data:string +@16791 = .sdata:0x81696FF4; // type:object size:0x6 data:string +@16792 = .sdata:0x81696FFA; // type:object size:0x6 data:string +@16793 = .sdata:0x81697000; // type:object size:0x7 data:string +@16794 = .sdata:0x81697007; // type:object size:0x7 data:string +sSettingArrowNames__Q23ipl5scene = .sdata:0x81697010; // type:object size:0x8 data:4byte +@16795 = .sdata:0x81697018; // type:object size:0x8 data:string +@16796 = .sdata:0x81697020; // type:object size:0x8 data:string +@16797 = .sdata:0x81697028; // type:object size:0x8 data:string +@16798 = .sdata:0x81697030; // type:object size:0x8 data:string +@16799 = .sdata:0x81697038; // type:object size:0x8 data:string +@16800 = .sdata:0x81697040; // type:object size:0x8 data:string +@16801 = .sdata:0x81697048; // type:object size:0x6 data:string +@16802 = .sdata:0x8169704E; // type:object size:0x6 data:string +@16803 = .sdata:0x81697054; // type:object size:0x6 data:string +@16804 = .sdata:0x8169705A; // type:object size:0x6 data:string +@16805 = .sdata:0x81697060; // type:object size:0x6 data:string +@16806 = .sdata:0x81697066; // type:object size:0x6 data:string +@16809 = .sdata:0x8169706C; // type:object size:0x7 data:string +@16810 = .sdata:0x81697073; // type:object size:0x7 data:string +@16811 = .sdata:0x8169707A; // type:object size:0x8 data:string +@16812 = .sdata:0x81697082; // type:object size:0x7 data:string +@16813 = .sdata:0x81697089; // type:object size:0x6 data:string +@16814 = .sdata:0x8169708F; // type:object size:0x6 data:string +@16815 = .sdata:0x81697095; // type:object size:0x6 data:string +@16816 = .sdata:0x8169709B; // type:object size:0x6 data:string +@16817 = .sdata:0x816970A1; // type:object size:0x6 data:string +@16818 = .sdata:0x816970A7; // type:object size:0x6 data:string +@16819 = .sdata:0x816970AD; // type:object size:0x6 data:string +@16820 = .sdata:0x816970B3; // type:object size:0x6 data:string +@16827 = .sdata:0x816970B9; // type:object size:0x8 data:string +@16828 = .sdata:0x816970C1; // type:object size:0x8 data:string +@16829 = .sdata:0x816970C9; // type:object size:0x8 data:string +@16830 = .sdata:0x816970D1; // type:object size:0x8 data:string +@16831 = .sdata:0x816970D9; // type:object size:0x8 data:string +@16832 = .sdata:0x816970E1; // type:object size:0x8 data:string +@25504 = .sdata:0x816970E9; // type:object size:0x4 data:string +@25507 = .sdata:0x816970ED; // type:object size:0x4 data:string +@25617 = .sdata:0x816970F1; // type:object size:0x5 data:string +@25619 = .sdata:0x816970F6; // type:object size:0x4 data:string +@25626 = .sdata:0x816970FA; // type:object size:0x7 data:string +@25627 = .sdata:0x81697101; // type:object size:0x7 data:string +@17202 = .sdata:0x81697108; // type:object size:0x3 data:string +@17205 = .sdata:0x8169710B; // type:object size:0x6 data:string +@17206 = .sdata:0x81697111; // type:object size:0x7 data:string +@17207 = .sdata:0x81697118; // type:object size:0x6 data:string +@17208 = .sdata:0x8169711E; // type:object size:0x1 +@17209 = .sdata:0x8169711F; // type:object size:0x6 data:string +@17210 = .sdata:0x81697125; // type:object size:0x6 data:string +@17211 = .sdata:0x8169712B; // type:object size:0x6 data:string +@17214 = .sdata:0x81697131; // type:object size:0x4 data:string +@17215 = .sdata:0x81697135; // type:object size:0x4 data:string +@17216 = .sdata:0x81697139; // type:object size:0x4 data:string +@17217 = .sdata:0x8169713D; // type:object size:0x4 data:string +@17218 = .sdata:0x81697141; // type:object size:0x4 data:string +@17219 = .sdata:0x81697145; // type:object size:0x4 data:string +@17220 = .sdata:0x81697149; // type:object size:0x4 data:string +@17221 = .sdata:0x8169714D; // type:object size:0x4 data:string +@17222 = .sdata:0x81697151; // type:object size:0x4 data:string +@17248 = .sdata:0x81697155; // type:object size:0x8 data:string +@17249 = .sdata:0x8169715D; // type:object size:0x6 data:string +@17253 = .sdata:0x81697163; // type:object size:0x7 data:string +@25725 = .sdata:0x8169716A; // type:object size:0x4 data:string +@26352 = .sdata:0x8169716E; // type:object size:0x5 data:string +@26503 = .sdata:0x81697173; // type:object size:0x7 data:string +@26504 = .sdata:0x8169717A; // type:object size:0x5 data:string +@26505 = .sdata:0x8169717F; // type:object size:0x5 data:string +@26506 = .sdata:0x81697184; // type:object size:0x5 data:string +@26625 = .sdata:0x8169718A; // type:object size:0x2 +@26851 = .sdata:0x8169718C; // type:object size:0x3 data:string +@18811 = .sdata:0x8169718F; // type:object size:0x2 data:string +@18812 = .sdata:0x81697191; // type:object size:0x2 data:string +@18813 = .sdata:0x81697193; // type:object size:0x2 data:string +@18814 = .sdata:0x81697195; // type:object size:0x2 data:string +@18815 = .sdata:0x81697197; // type:object size:0x2 data:string +@27404 = .sdata:0x81697199; // type:object size:0x6 data:string +@27405 = .sdata:0x8169719F; // type:object size:0x6 data:string +@27406 = .sdata:0x816971A5; // type:object size:0x6 data:string +@27407 = .sdata:0x816971AB; // type:object size:0x6 data:string +@27556 = .sdata:0x816971B1; // type:object size:0x6 data:string +@27557 = .sdata:0x816971B7; // type:object size:0x6 data:string +@27558 = .sdata:0x816971BD; // type:object size:0x6 data:string +@27559 = .sdata:0x816971C3; // type:object size:0x6 data:string +@27560 = .sdata:0x816971C9; // type:object size:0x7 data:string +@27862 = .sdata:0x816971D0; // type:object size:0x3 data:string +@28152 = .sdata:0x816971D4; // type:object size:0x8 data:wstring @12299 = .sdata:0x816971E0; // type:object size:0x5 scope:local data:string @12302 = .sdata:0x816971E5; // type:object size:0x5 scope:local data:string lbl_816971F0 = .sdata:0x816971F0; // type:object size:0x4 data:string diff --git a/src/scene/setting/iplSetting.cpp b/src/scene/setting/iplSetting.cpp index 57ea9b6d..e853c66e 100644 --- a/src/scene/setting/iplSetting.cpp +++ b/src/scene/setting/iplSetting.cpp @@ -1606,10 +1606,10 @@ namespace ipl { OSReport("initKeyboard formId:%d\n", mpWiiSettingData->data[0x11]); memset(unk_0x938, 0, sizeof(unk_0x938)); - int invalidInput = 0; + int stringLimit; keyboard::Manager::KeyboardType keyboardType = keyboard::Manager::LETTER; - int rowLimit = 0; - int stringLimit = 0; + int rowLimit; + int invalidInput = 0; int productArea = static_cast(SCGetProductArea()); switch (mpWiiSettingData->data[0x11]) { @@ -1711,14 +1711,16 @@ namespace ipl { } if (productArea == 11) { - System::getKeyboard()->memoFrm()->setZiDictionary(System::getKeyboard()->getZiOemDic(), System::getKeyboard()->getZiSystemDic()); + void* systemDic = System::getKeyboard()->getZiSystemDic(); + void* oemDic = System::getKeyboard()->getZiOemDic(); + System::getKeyboard()->memoFrm()->setZiDictionary(oemDic, systemDic); } keyboard::Manager::KeyboardSetting setting; - setting.type = keyboardType; + setting.rowLimit = rowLimit; setting.wcString = reinterpret_cast(unk_0x938); setting.stringLimit = stringLimit; - setting.rowLimit = rowLimit; + setting.type = keyboardType; System::getKeyboard()->start(0, setting); if (invalidInput != 0) { -- 2.49.1 From 8870c4aa75839f3a268a499c477f5afcdafaa4c1 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 14:25:44 -0500 Subject: [PATCH 02/10] cleanup(NWC24FriendList): rename FLHeader unk_0x3C to listFlags (#898) Written by SetListFlag (OR of flag bits on add). --- libs/RevoEX/include/private/nwc24/NWC24FriendList.h | 2 +- libs/RevoEX/src/nwc24/NWC24FriendList.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/RevoEX/include/private/nwc24/NWC24FriendList.h b/libs/RevoEX/include/private/nwc24/NWC24FriendList.h index 5e8137b4..e80cd57c 100644 --- a/libs/RevoEX/include/private/nwc24/NWC24FriendList.h +++ b/libs/RevoEX/include/private/nwc24/NWC24FriendList.h @@ -19,7 +19,7 @@ typedef struct NWC24FLHeader { u32 registeredCount; // 0x0C u32 confirmedBits[4]; // 0x10 u32 unk_0x20[7]; - u32 unk_0x3C; + u32 listFlags; // 0x3C NWC24UserId friendIds[NWC24_FRIEND_INFO_MAX]; // 0x40 } NWC24FLHeader; diff --git a/libs/RevoEX/src/nwc24/NWC24FriendList.c b/libs/RevoEX/src/nwc24/NWC24FriendList.c index 14baf27a..4f3a5454 100644 --- a/libs/RevoEX/src/nwc24/NWC24FriendList.c +++ b/libs/RevoEX/src/nwc24/NWC24FriendList.c @@ -63,7 +63,7 @@ static NWC24Err SetListFlag(int flag) { return result; } - header->unk_0x3C |= flag; + header->listFlags |= flag; return NWC24_OK; } -- 2.49.1 From 6cb5ac9dedfbf99dc591e2cabc9d62d2c849a69d Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 14:26:31 -0500 Subject: [PATCH 03/10] cleanup(eZiText): name unicode map range fields in work (#900) Zi8Uni2Ptr OEM remap table + two char ranges + subLanguage gate. --- .../eZiText/include/zi8clib/zitypes.h | 12 ++++++------ libs/RVLMiddleware/eZiText/src/clib/zi8misc.c | 14 +++++++------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/libs/RVLMiddleware/eZiText/include/zi8clib/zitypes.h b/libs/RVLMiddleware/eZiText/include/zi8clib/zitypes.h index 6300f04c..16cb8859 100644 --- a/libs/RVLMiddleware/eZiText/include/zi8clib/zitypes.h +++ b/libs/RVLMiddleware/eZiText/include/zi8clib/zitypes.h @@ -309,12 +309,12 @@ struct __zi8_work_data_s { ziWChar unk_0x1A92[0x41]; ziU8 unk_0x1B14; ziU8 unk_0x1B15[3]; - ziU16* unk_0x1B18; - ziU16 unk_0x1B1C; - ziU16 unk_0x1B1E; - ziU16 unk_0x1B20; - ziU16 unk_0x1B22; - ziU8 unk_0x1B24; + ziU16* unicodeMap; // 0x1B18 + ziU16 unicodeRange1Min; // 0x1B1C + ziU16 unicodeRange1Max; // 0x1B1E + ziU16 unicodeRange2Min; // 0x1B20 + ziU16 unicodeRange2Max; // 0x1B22 + ziU8 unicodeMapSubLang; // 0x1B24 ziU8 unk_0x1B25[3]; union { ziU32 word; diff --git a/libs/RVLMiddleware/eZiText/src/clib/zi8misc.c b/libs/RVLMiddleware/eZiText/src/clib/zi8misc.c index cf788c63..b11d8856 100644 --- a/libs/RVLMiddleware/eZiText/src/clib/zi8misc.c +++ b/libs/RVLMiddleware/eZiText/src/clib/zi8misc.c @@ -65,19 +65,19 @@ ziU16 Zi8Uni2Ptr(ziU16 ch, ziE12* buf ZI_NEED_WORK) { } } e = (ziU8*)table; - if (WORKP->unk_0x1B18 != ZI8_NULL && WORKP->unk_0x1B24 == WORKP->subLanguage) { - if ((ziU16)ch >= WORKP->unk_0x1B1C && (ziU16)ch <= WORKP->unk_0x1B1E) { - i = (ziU16)(ch - WORKP->unk_0x1B1C); + if (WORKP->unicodeMap != ZI8_NULL && WORKP->unicodeMapSubLang == WORKP->subLanguage) { + if ((ziU16)ch >= WORKP->unicodeRange1Min && (ziU16)ch <= WORKP->unicodeRange1Max) { + i = (ziU16)(ch - WORKP->unicodeRange1Min); goto map; } - if ((ziU16)ch >= WORKP->unk_0x1B20 && (ziU16)ch <= WORKP->unk_0x1B22) { - i = (ziU16)(WORKP->unk_0x1B1E + (ch - WORKP->unk_0x1B20) - - WORKP->unk_0x1B1C + 1); + if ((ziU16)ch >= WORKP->unicodeRange2Min && (ziU16)ch <= WORKP->unicodeRange2Max) { + i = (ziU16)(WORKP->unicodeRange1Max + (ch - WORKP->unicodeRange2Min) - + WORKP->unicodeRange1Min + 1); goto map; } return 0xFFFF; map: - i = WORKP->unk_0x1B18[i]; + i = WORKP->unicodeMap[i]; if (i != 0xFFFF) { e = (ziU8*)table + i * 0xC; if (hi == e[6] && lo == e[7]) { -- 2.49.1 From 401d0c88e763fb890bc4ff7c189b79cc64d41169 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 14:26:58 -0500 Subject: [PATCH 04/10] cleanup(eZiText): rename work unk_0x12C to uwdPtrCount (#901) Count of ZH user-word ptr stack entries (distinct from uwdCount @ 0x1C7). --- libs/RVLMiddleware/eZiText/include/zi8clib/zitypes.h | 2 +- libs/RVLMiddleware/eZiText/src/clib/zi8ZHuwd.c | 6 +++--- libs/RVLMiddleware/eZiText/src/clib/zi8cgetc.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/RVLMiddleware/eZiText/include/zi8clib/zitypes.h b/libs/RVLMiddleware/eZiText/include/zi8clib/zitypes.h index 16cb8859..b1bbe34a 100644 --- a/libs/RVLMiddleware/eZiText/include/zi8clib/zitypes.h +++ b/libs/RVLMiddleware/eZiText/include/zi8clib/zitypes.h @@ -226,7 +226,7 @@ struct __zi8_work_data_s { ziU16 unk_0xA0[0x42]; ziU16* unk_0x124[1]; ziU8* unk_0x128; - ziU8 unk_0x12C; + ziU8 uwdPtrCount; // 0x12C ziU8 unk_0x12D; ziU8 unk_0x12E; ziU8 unk_0x12F; diff --git a/libs/RVLMiddleware/eZiText/src/clib/zi8ZHuwd.c b/libs/RVLMiddleware/eZiText/src/clib/zi8ZHuwd.c index 3611b6fb..b4eadef0 100644 --- a/libs/RVLMiddleware/eZiText/src/clib/zi8ZHuwd.c +++ b/libs/RVLMiddleware/eZiText/src/clib/zi8ZHuwd.c @@ -2,14 +2,14 @@ #include ziU32 Zi8GetZHuwdPtr(ziU32* arg0, ziU16* arg1 ZI_NEED_WORK) { - if (ZI_WORK->unk_0x12C == 0) { + if (ZI_WORK->uwdPtrCount == 0) { *arg0 = 0; *arg1 = 0; Zi8LogError(0x1A5, ZI_WORK); return 0; } else { - *arg1 = ZI_WORK->unk_0x124[ZI_WORK->unk_0x12C - 1][1] / 3; - *arg0 = (ziU32)ZI_WORK->unk_0x124[ZI_WORK->unk_0x12C - 1]; + *arg1 = ZI_WORK->unk_0x124[ZI_WORK->uwdPtrCount - 1][1] / 3; + *arg0 = (ziU32)ZI_WORK->unk_0x124[ZI_WORK->uwdPtrCount - 1]; *arg0 += 8; Zi8LogError(0x64, ZI_WORK); return 1; diff --git a/libs/RVLMiddleware/eZiText/src/clib/zi8cgetc.c b/libs/RVLMiddleware/eZiText/src/clib/zi8cgetc.c index 94ebb4d4..59287a5a 100644 --- a/libs/RVLMiddleware/eZiText/src/clib/zi8cgetc.c +++ b/libs/RVLMiddleware/eZiText/src/clib/zi8cgetc.c @@ -1752,7 +1752,7 @@ tone_candidates: } } user_character_search: - if (((struct __zi8_work_data_s*)work)->unk_0x12C && (getMode != 0 || !firstPhoneticPass) && + if (((struct __zi8_work_data_s*)work)->uwdPtrCount && (getMode != 0 || !firstPhoneticPass) && !options->countOnly && (match.nCand <= 1 || (getMode != 1 && getMode != 2)) && Zi8GetZHuwdPtr(&userEntries, &userCount, work) && (getMode != 0 || match.nSeg <= 1)) { userIndex = 0; -- 2.49.1 From c7ceb3efe077dca7dd49508cf4e2bd1faab56b54 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 14:27:25 -0500 Subject: [PATCH 05/10] cleanup(WPAD): name FS/CL stick min/max calib fields (#903) DEBUGPrint labels X/Y max/min beside stick centers in calibration. --- .../include/private/wpad/WPADInternal.h | 24 +++++----- libs/RVL_SDK/src/wpad/WPADHIDParser.c | 48 +++++++++---------- 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/libs/RVL_SDK/include/private/wpad/WPADInternal.h b/libs/RVL_SDK/include/private/wpad/WPADInternal.h index 266f103d..13d7dee0 100644 --- a/libs/RVL_SDK/include/private/wpad/WPADInternal.h +++ b/libs/RVL_SDK/include/private/wpad/WPADInternal.h @@ -133,11 +133,11 @@ typedef struct WPADExtConfig { union { struct WPADFSConfig { s16 stickXCenter; // 0x00 - s16 unk_0x02; // 0x02 - s16 unk_0x04; // 0x04 + s16 stickXMin; // 0x02 + s16 stickXMax; // 0x04 s16 stickYCenter; // 0x06 - s16 unk_0x08; // 0x08 - s16 unk_0x0A; // 0x0A + s16 stickYMin; // 0x08 + s16 stickYMax; // 0x0A s16 accX0g; // 0x0C s16 accY0g; // 0x0E @@ -150,18 +150,18 @@ typedef struct WPADExtConfig { struct WPADCLConfig { s16 lStickXCenter; // 0x00 - s16 unk_0x02; // 0x02 - s16 unk_0x04; // 0x04 + s16 lStickXMin; // 0x02 + s16 lStickXMax; // 0x04 s16 lStickYCenter; // 0x06 - s16 unk_0x08; // 0x08 - s16 unk_0x0A; // 0x0A + s16 lStickYMin; // 0x08 + s16 lStickYMax; // 0x0A s16 rStickXCenter; // 0x0C - s16 unk_0x0E; // 0x0E - s16 unk_0x10; // 0x10 + s16 rStickXMin; // 0x0E + s16 rStickXMax; // 0x10 s16 rStickYCenter; // 0x12 - s16 unk_0x14; // 0x14 - s16 unk_0x16; // 0x16 + s16 rStickYMin; // 0x14 + s16 rStickYMax; // 0x16 u8 triggerLZero; // 0x18 u8 triggerRZero; // 0x19 diff --git a/libs/RVL_SDK/src/wpad/WPADHIDParser.c b/libs/RVL_SDK/src/wpad/WPADHIDParser.c index cea48c48..61e23778 100644 --- a/libs/RVL_SDK/src/wpad/WPADHIDParser.c +++ b/libs/RVL_SDK/src/wpad/WPADHIDParser.c @@ -393,48 +393,48 @@ static void getExtConfig(s32 chan, s32 result) { p_wpd->extConfig.u.fs.accX1g = (s16)((u16)(((u16)(p_buf[index + 4]) << 2) & 0xFFFC) | (u16)(((u16)(p_buf[index + 7]) >> 4) & 3)); p_wpd->extConfig.u.fs.accY1g = (s16)((u16)(((u16)(p_buf[index + 5]) << 2) & 0xFFFC) | (u16)(((u16)(p_buf[index + 7]) >> 2) & 3)); p_wpd->extConfig.u.fs.accZ1g = (s16)((u16)(((u16)(p_buf[index + 6]) << 2) & 0xFFFC) | (u16)(((u16)(p_buf[index + 7])) & 3)); - p_wpd->extConfig.u.fs.unk_0x04 = (s8)p_buf[index + 8]; - p_wpd->extConfig.u.fs.unk_0x02 = (s8)p_buf[index + 9]; + p_wpd->extConfig.u.fs.stickXMax = (s8)p_buf[index + 8]; + p_wpd->extConfig.u.fs.stickXMin = (s8)p_buf[index + 9]; p_wpd->extConfig.u.fs.stickXCenter = (s8)p_buf[index + 10]; - p_wpd->extConfig.u.fs.unk_0x0A = (s8)p_buf[index + 11]; - p_wpd->extConfig.u.fs.unk_0x08 = (s8)p_buf[index + 12]; + p_wpd->extConfig.u.fs.stickYMax = (s8)p_buf[index + 11]; + p_wpd->extConfig.u.fs.stickYMin = (s8)p_buf[index + 12]; p_wpd->extConfig.u.fs.stickYCenter = (s8)p_buf[index + 13]; DEBUGPrint("0G: fsaccX = %d, fsaccY = %d, fsaccZ = %d\n", p_wpd->extConfig.u.fs.accX0g, p_wpd->extConfig.u.fs.accY0g, p_wpd->extConfig.u.fs.accZ0g); DEBUGPrint("1G: fsaccX = %d, fsaccY = %d, fsaccZ = %d\n", p_wpd->extConfig.u.fs.accX1g, p_wpd->extConfig.u.fs.accY1g, p_wpd->extConfig.u.fs.accZ1g); - DEBUGPrint("FS: X = %d, X max = %d, X min = %d\n", p_wpd->extConfig.u.fs.stickXCenter, p_wpd->extConfig.u.fs.unk_0x04, - p_wpd->extConfig.u.fs.unk_0x02); - DEBUGPrint("FS: Y = %d, Y max = %d, Y min = %d\n", p_wpd->extConfig.u.fs.stickYCenter, p_wpd->extConfig.u.fs.unk_0x0A, - p_wpd->extConfig.u.fs.unk_0x08); + DEBUGPrint("FS: X = %d, X max = %d, X min = %d\n", p_wpd->extConfig.u.fs.stickXCenter, p_wpd->extConfig.u.fs.stickXMax, + p_wpd->extConfig.u.fs.stickXMin); + DEBUGPrint("FS: Y = %d, Y max = %d, Y min = %d\n", p_wpd->extConfig.u.fs.stickYCenter, p_wpd->extConfig.u.fs.stickYMax, + p_wpd->extConfig.u.fs.stickYMin); } break; case WPAD_DEV_CLASSIC: - p_wpd->extConfig.u.cl.unk_0x04 = (s8)p_buf[index + 0]; - p_wpd->extConfig.u.cl.unk_0x02 = (s8)p_buf[index + 1]; + p_wpd->extConfig.u.cl.lStickXMax = (s8)p_buf[index + 0]; + p_wpd->extConfig.u.cl.lStickXMin = (s8)p_buf[index + 1]; p_wpd->extConfig.u.cl.lStickXCenter = (s8)p_buf[index + 2]; - p_wpd->extConfig.u.cl.unk_0x0A = (s8)p_buf[index + 3]; - p_wpd->extConfig.u.cl.unk_0x08 = (s8)p_buf[index + 4]; + p_wpd->extConfig.u.cl.lStickYMax = (s8)p_buf[index + 3]; + p_wpd->extConfig.u.cl.lStickYMin = (s8)p_buf[index + 4]; p_wpd->extConfig.u.cl.lStickYCenter = (s8)p_buf[index + 5]; - p_wpd->extConfig.u.cl.unk_0x10 = (s8)p_buf[index + 6]; - p_wpd->extConfig.u.cl.unk_0x0E = (s8)p_buf[index + 7]; + p_wpd->extConfig.u.cl.rStickXMax = (s8)p_buf[index + 6]; + p_wpd->extConfig.u.cl.rStickXMin = (s8)p_buf[index + 7]; p_wpd->extConfig.u.cl.rStickXCenter = (s8)p_buf[index + 8]; - p_wpd->extConfig.u.cl.unk_0x16 = (s8)p_buf[index + 9]; - p_wpd->extConfig.u.cl.unk_0x14 = (s8)p_buf[index + 10]; + p_wpd->extConfig.u.cl.rStickYMax = (s8)p_buf[index + 9]; + p_wpd->extConfig.u.cl.rStickYMin = (s8)p_buf[index + 10]; p_wpd->extConfig.u.cl.rStickYCenter = (s8)p_buf[index + 11]; p_wpd->extConfig.u.cl.triggerLZero = p_buf[index + 12]; p_wpd->extConfig.u.cl.triggerRZero = p_buf[index + 13]; - DEBUGPrint("CL: X = %d, X max = %d, X min = %d\n", p_wpd->extConfig.u.cl.lStickXCenter, p_wpd->extConfig.u.cl.unk_0x04, - p_wpd->extConfig.u.cl.unk_0x02); - DEBUGPrint("CL: Y = %d, Y max = %d, Y min = %d\n", p_wpd->extConfig.u.cl.lStickYCenter, p_wpd->extConfig.u.cl.unk_0x0A, - p_wpd->extConfig.u.cl.unk_0x08); - DEBUGPrint("CR: X = %d, X max = %d, X min = %d\n", p_wpd->extConfig.u.cl.rStickXCenter, p_wpd->extConfig.u.cl.unk_0x10, - p_wpd->extConfig.u.cl.unk_0x0E); - DEBUGPrint("CR: Y = %d, Y max = %d, Y min = %d\n", p_wpd->extConfig.u.cl.rStickYCenter, p_wpd->extConfig.u.cl.unk_0x16, - p_wpd->extConfig.u.cl.unk_0x14); + DEBUGPrint("CL: X = %d, X max = %d, X min = %d\n", p_wpd->extConfig.u.cl.lStickXCenter, p_wpd->extConfig.u.cl.lStickXMax, + p_wpd->extConfig.u.cl.lStickXMin); + DEBUGPrint("CL: Y = %d, Y max = %d, Y min = %d\n", p_wpd->extConfig.u.cl.lStickYCenter, p_wpd->extConfig.u.cl.lStickYMax, + p_wpd->extConfig.u.cl.lStickYMin); + DEBUGPrint("CR: X = %d, X max = %d, X min = %d\n", p_wpd->extConfig.u.cl.rStickXCenter, p_wpd->extConfig.u.cl.rStickXMax, + p_wpd->extConfig.u.cl.rStickXMin); + DEBUGPrint("CR: Y = %d, Y max = %d, Y min = %d\n", p_wpd->extConfig.u.cl.rStickYCenter, p_wpd->extConfig.u.cl.rStickYMax, + p_wpd->extConfig.u.cl.rStickYMin); DEBUGPrint("LR: L = %d, R = %d\n", p_wpd->extConfig.u.cl.triggerLZero, p_wpd->extConfig.u.cl.triggerRZero); break; } -- 2.49.1 From f65fac33513682ee42382a814dccf1d110a115f3 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 14:29:12 -0500 Subject: [PATCH 06/10] cleanup(WPAD): rename CB unk_0x910 to suppressDisconnect (#907) When set, comm-timeout path skips WPADiDisconnect and reports TRANSFER. --- libs/RVL_SDK/include/private/wpad/WPADInternal.h | 2 +- libs/RVL_SDK/src/wpad/WPAD.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/RVL_SDK/include/private/wpad/WPADInternal.h b/libs/RVL_SDK/include/private/wpad/WPADInternal.h index 13d7dee0..810ebfaf 100644 --- a/libs/RVL_SDK/include/private/wpad/WPADInternal.h +++ b/libs/RVL_SDK/include/private/wpad/WPADInternal.h @@ -223,7 +223,7 @@ typedef struct WPADCB { u16 filterDiffExt; // 0x900 u16 filterSameExt; // 0x902 s64 lastReportSendTime; // 0x908 - u8 unk_0x910; + u8 suppressDisconnect; // 0x910 u8 calibrated; // 0x911 u16 comboHeld; // 0x912 u8 encryptionKey[16]; // 0x914 diff --git a/libs/RVL_SDK/src/wpad/WPAD.c b/libs/RVL_SDK/src/wpad/WPAD.c index dc1c3c3c..b7a426b0 100644 --- a/libs/RVL_SDK/src/wpad/WPAD.c +++ b/libs/RVL_SDK/src/wpad/WPAD.c @@ -190,7 +190,7 @@ static s32 WPADiSendData(s32 chan, WPADCommand command) { if (status == WPAD_ERR_COMMUNICATION_ERROR) { if ((s32)OSTicksToSeconds(__OSGetSystemTime() - p->lastReportSendTime) > 1 && _sleepTime != 0) { - if (!p->unk_0x910) { + if (!p->suppressDisconnect) { p->lastReportSendTime = __OSGetSystemTime(); WPADiDisconnect(chan, FALSE); } else { @@ -1263,7 +1263,7 @@ static void __ClearControlBlock(s32 chan) { p->lastControllerDataUpdate = __OSGetSystemTime(); p->lastReportSendTime = __OSGetSystemTime(); - p->unk_0x910 = 0; + p->suppressDisconnect = 0; p->unk_0x8C9 = 0; p->unk_0x8C4 = 0; p->wmReadDataPtr = NULL; @@ -2692,7 +2692,7 @@ static void __SendData(s32 chan, WPADCommand command) { u32 time; memcpy(&time, command.dataBuf, sizeof(u32)); p->lastReportSendTime = __OSGetSystemTime() + time; - p->unk_0x910 = 1; + p->suppressDisconnect = 1; return; } default: { @@ -2704,7 +2704,7 @@ static void __SendData(s32 chan, WPADCommand command) { p->cmdBlkCB = command.cmdCB; p->lastReportID = reportID; p->lastReportSendTime = __OSGetSystemTime() + OSSecondsToTicks(2); - p->unk_0x910 = 0; + p->suppressDisconnect = 0; OSRestoreInterrupts(enabled); } -- 2.49.1 From 77439a326861fc7e0fee45e944f84d5c32d57f6e Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 14:29:40 -0500 Subject: [PATCH 07/10] cleanup(iplChannelManager): name mbDiskChannelReady (#908) unk_0x1B81 -> mbDiskChannelReady isUnk_0x1B81 -> isDiskChannelReady setUnk_0x1B81 -> setDiskChannelReady Set when BS2 enters RVL_GAME and disk banner info is applied; cleared when disk banner data is consumed or channel UI dismisses it. Touched channelSelect / channelTitle callers. Matching 100% before/after; DOL sha1 unchanged. --- include/system/iplChannelManager.h | 6 +++--- src/scene/channelSelect/iplChannelSelect.cpp | 4 ++-- src/scene/channelTitle/iplChannelTitle.cpp | 6 +++--- src/system/iplChannelManager.cpp | 6 +++--- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/include/system/iplChannelManager.h b/include/system/iplChannelManager.h index 693eed99..94a6baeb 100644 --- a/include/system/iplChannelManager.h +++ b/include/system/iplChannelManager.h @@ -365,8 +365,8 @@ namespace ipl { int getChJumpChanPage() { return mChJumpPage; } int getChJumpChanIndex() { return mChJumpIndex; } - void setUnk_0x1B81(bool flag) { unk_0x1B81 = flag; } - bool isUnk_0x1B81() { return unk_0x1B81; } + void setDiskChannelReady(bool flag) { mbDiskChannelReady = flag; } + bool isDiskChannelReady() { return mbDiskChannelReady; } void resetChJumpLoad() { mbLoadedChJump = false; } bool hasLoadedChJump() { return mbLoadedChJump; } @@ -399,7 +399,7 @@ namespace ipl { int mBS2State; // 0x1B7C bool mbCanRefresh; // 0x1B80 - bool unk_0x1B81; + bool mbDiskChannelReady; u8* mpDiskIconBuf; // 0x1B84 u8* mpDiskBannerBuf; // 0x1B88 diff --git a/src/scene/channelSelect/iplChannelSelect.cpp b/src/scene/channelSelect/iplChannelSelect.cpp index b98e0b4c..61bff581 100644 --- a/src/scene/channelSelect/iplChannelSelect.cpp +++ b/src/scene/channelSelect/iplChannelSelect.cpp @@ -1844,7 +1844,7 @@ namespace ipl { initChanZoomParam(myVec, 1); setChanZoomOrtho(); - if (System::getChannelManager()->isUnk_0x1B81()) { + if (System::getChannelManager()->isDiskChannelReady()) { if (System::getBS2Manager()->getIPLState() == bs2::IPL_STATE_RVL_GAME || System::getBS2Manager()->getIPLState() == bs2::IPL_STATE_DISK_UPDATE) { if (mspDiskID != NULL) { @@ -1856,7 +1856,7 @@ namespace ipl { if (strncmp(diskID, mspDiskID, 4) == 0) { if (strncmp(diskMaker, mspDiskMaker, 2) == 0) { - System::getChannelManager()->setUnk_0x1B81(false); + System::getChannelManager()->setDiskChannelReady(false); } } } diff --git a/src/scene/channelTitle/iplChannelTitle.cpp b/src/scene/channelTitle/iplChannelTitle.cpp index 9965a247..8f2c127f 100644 --- a/src/scene/channelTitle/iplChannelTitle.cpp +++ b/src/scene/channelTitle/iplChannelTitle.cpp @@ -467,7 +467,7 @@ namespace ipl { mpDiskBnrLayout->calc(); } else { calcModuleChannel(); - System::getChannelManager()->setUnk_0x1B81(false); + System::getChannelManager()->setDiskChannelReady(false); } if ((mState == STATE_NORMAL || mState == STATE_WAIT_TMD || mState == STATE_PREPARE_BOOT || mState == STATE_BOOT_SCENE) && !unk_0x90 && @@ -1220,7 +1220,7 @@ namespace ipl { #pragma ppc_iro_level 0 void ChannelTitle::calcNormalParentalDialog() { if (mChanSceneID == SCENE_DISK_CHANNEL && - (System::getBS2Manager()->getIPLState() != bs2::IPL_STATE_RVL_GAME || System::getChannelManager()->isUnk_0x1B81())) { + (System::getBS2Manager()->getIPLState() != bs2::IPL_STATE_RVL_GAME || System::getChannelManager()->isDiskChannelReady())) { mParentalState = PARENTAL_STATE_FAILED; } @@ -2064,7 +2064,7 @@ namespace ipl { break; } case DISK_STATE_WII_DISK_IDLE: { - if (BS2State != bs2::IPL_STATE_RVL_GAME || System::getChannelManager()->isUnk_0x1B81()) { + if (BS2State != bs2::IPL_STATE_RVL_GAME || System::getChannelManager()->isDiskChannelReady()) { mDiskState = DISK_STATE_EJECT; mpDiskBnrAnims[DISK_ANIM_GRP_ALL][DISK_ANIM_DISK_EJECT]->play(); mpDiskBnrLayout->GetRootPane()->SetVisible(true); diff --git a/src/system/iplChannelManager.cpp b/src/system/iplChannelManager.cpp index f8775b65..40238409 100644 --- a/src/system/iplChannelManager.cpp +++ b/src/system/iplChannelManager.cpp @@ -91,7 +91,7 @@ namespace ipl { extern "C" const u32 scLangLookup__Q23ipl7channel[][16]; Manager::Manager(EGG::Heap* heap) - : mpHeap(heap), mState(INIT), mbCanRefresh(0), unk_0x1B81(false), mbSetDiskBannerInfo(false), mPrevNandResult(NAND_RESULT_OK), + : mpHeap(heap), mState(INIT), mbCanRefresh(0), mbDiskChannelReady(false), mbSetDiskBannerInfo(false), mPrevNandResult(NAND_RESULT_OK), mbLoadedChJump(false) { mpLockedMsgFile = NULL; @@ -951,7 +951,7 @@ namespace ipl { int state = System::getBS2Manager()->getIPLState(); if (state == bs2::IPL_STATE_RVL_GAME && mBS2State != bs2::IPL_STATE_RVL_GAME) { mbSetDiskBannerInfo = setDiskBannerInfo(false); - unk_0x1B81 = true; + mbDiskChannelReady = true; } else if (state != bs2::IPL_STATE_RVL_GAME && state != mBS2State) { setDiskBannerInfo(true); } @@ -1076,7 +1076,7 @@ namespace ipl { ARCFileInfo readFile; if (unk) { - unk_0x1B81 = false; + mbDiskChannelReady = false; } int diskPage, diskIndex; -- 2.49.1 From 299a6ca724996b8616fcf5f19668af9963a753db Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 14:30:27 -0500 Subject: [PATCH 08/10] cleanup(puh_ker_sem): name semaphore manager fields (#910) initCount/flags from create args; usedCount active slots; lockSem manager lock. --- libs/RVL_SDK/src/usbcmn/puh_ker_sem.c | 32 +++++++++++++-------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/libs/RVL_SDK/src/usbcmn/puh_ker_sem.c b/libs/RVL_SDK/src/usbcmn/puh_ker_sem.c index 4db0892c..d69696aa 100644 --- a/libs/RVL_SDK/src/usbcmn/puh_ker_sem.c +++ b/libs/RVL_SDK/src/usbcmn/puh_ker_sem.c @@ -7,12 +7,12 @@ static struct { struct { OSSemaphore* sem; // 0x00 - u32 unk_0x04; - u32 unk_0x08; + u32 initCount; + u32 flags; } entries[MAX_PUH_SEM]; // 0x00 - u32 unk_0x90; - OSSemaphore* unk_0x94; - u8 unk_0x98[0x0C]; + u32 usedCount; + OSSemaphore* lockSem; + u8 pad[0x0C]; } st_uhs_ker_sem_mng; static OSSemaphore st_uhf_ker_sem[MAX_PUH_SEM]; @@ -20,17 +20,17 @@ static OSSemaphore st_uhf_ker_sem[MAX_PUH_SEM]; static s32 st_uhs_ker_sem_status; static int uhf_ker_sem_inline_0() { - if (st_uhs_ker_sem_status != 1 || st_uhs_ker_sem_mng.unk_0x94 == 0) { + if (st_uhs_ker_sem_status != 1 || st_uhs_ker_sem_mng.lockSem == 0) { return -1; } else { - OSWaitSemaphore(st_uhs_ker_sem_mng.unk_0x94); + OSWaitSemaphore(st_uhs_ker_sem_mng.lockSem); return 0; } } static void uhf_ker_sem_inline_1() { - if (st_uhs_ker_sem_status == 1 && st_uhs_ker_sem_mng.unk_0x94 != 0) { - OSSignalSemaphore(st_uhs_ker_sem_mng.unk_0x94); + if (st_uhs_ker_sem_status == 1 && st_uhs_ker_sem_mng.lockSem != 0) { + OSSignalSemaphore(st_uhs_ker_sem_mng.lockSem); } } @@ -48,7 +48,7 @@ s32 uhf_ker_create_sem(u32 initCount, int flags) { return -5; } - if (st_uhs_ker_sem_mng.unk_0x90 == 12) { + if (st_uhs_ker_sem_mng.usedCount == 12) { uhf_ker_sem_inline_1(); return -24; } @@ -65,9 +65,9 @@ s32 uhf_ker_create_sem(u32 initCount, int flags) { } st_uhs_ker_sem_mng.entries[i].sem = sem; - st_uhs_ker_sem_mng.entries[i].unk_0x04 = initCount; - st_uhs_ker_sem_mng.entries[i].unk_0x08 = flags; - st_uhs_ker_sem_mng.unk_0x90++; + st_uhs_ker_sem_mng.entries[i].initCount = initCount; + st_uhs_ker_sem_mng.entries[i].flags = flags; + st_uhs_ker_sem_mng.usedCount++; uhf_ker_sem_inline_1(); @@ -97,9 +97,9 @@ s32 uhf_ker_delete_sem(int sem) { } st_uhs_ker_sem_mng.entries[sem - 1].sem = NULL; - st_uhs_ker_sem_mng.entries[sem - 1].unk_0x04 = 0; - st_uhs_ker_sem_mng.entries[sem - 1].unk_0x08 = 0; - st_uhs_ker_sem_mng.unk_0x90--; + st_uhs_ker_sem_mng.entries[sem - 1].initCount = 0; + st_uhs_ker_sem_mng.entries[sem - 1].flags = 0; + st_uhs_ker_sem_mng.usedCount--; uhf_ker_sem_inline_1(); -- 2.49.1 From afd362551fc2c2a354c8c0ea3aa0c19ab3b954db Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 14:34:09 -0500 Subject: [PATCH 09/10] match(iplSetting 108/112): createBrowser MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Separate case 7 from default in the direct-page switch so MWCC emits the target cmpwi/8 shape; default leaves the path unset. createBrowser 98.85 → 100. DOL SHA1 unchanged. --- src/scene/setting/iplSetting.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/scene/setting/iplSetting.cpp b/src/scene/setting/iplSetting.cpp index e853c66e..23c6bcc9 100644 --- a/src/scene/setting/iplSetting.cpp +++ b/src/scene/setting/iplSetting.cpp @@ -462,7 +462,6 @@ namespace ipl { directPagePath = "index03.html"; break; case 7: - default: directPagePath = "index01.html"; break; } -- 2.49.1 From f83c0c12e040bf32711e8f0e927858f35f72e301 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 14:36:02 -0500 Subject: [PATCH 10/10] match(iplSetting 109/112): calcKeyboard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Drop formText=NULL inits (target has no early zeros) and split asterisks[index++]=* into store then index++ for loop shape. calcKeyboard 98.0 → 100. createBrowser still 100. DOL unchanged. --- src/scene/setting/iplSetting.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/scene/setting/iplSetting.cpp b/src/scene/setting/iplSetting.cpp index 23c6bcc9..cded8458 100644 --- a/src/scene/setting/iplSetting.cpp +++ b/src/scene/setting/iplSetting.cpp @@ -1739,7 +1739,6 @@ namespace ipl { if (mKeyboardState.pressOK) { onTextInputOK(); u8 formId = mpWiiSettingData->data[0x11]; - formText = NULL; switch (formId) { case 1: formText = mpStringBuffer->nickname; @@ -1810,7 +1809,8 @@ namespace ipl { memcpy(mpStringBuffer->asterisks, mpStringBuffer->securityKey, sizeof(mpStringBuffer->securityKey)); mpStringBuffer->asterisks[0x41] = 0; while (mpStringBuffer->asterisks[index] != 0) { - mpStringBuffer->asterisks[index++] = '*'; + mpStringBuffer->asterisks[index] = '*'; + index++; } if (index > 0x20) { mpStringBuffer->asterisks[0x20] = '\n'; @@ -1822,7 +1822,6 @@ namespace ipl { } } else { u8 formId = mpWiiSettingData->data[0x11]; - formText = NULL; switch (formId) { case 1: formText = mpStringBuffer->nickname; -- 2.49.1