From a77ce293ce52a46c2f6a2b07113d3024eae15e1d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 00:09:13 +0000 Subject: [PATCH 1/5] docs: update progress [skip ci] --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 125aece1..f3b2ec89 100644 --- a/README.md +++ b/README.md @@ -53,9 +53,9 @@ Progress | Decompiled | Matched | Linked | Data | |:---:|:---:|:---:|:---:| -| 99.38% | 88.00% | 62.37% | 92.07% | +| 99.38% | 88.04% | 62.37% | 92.07% | -units 920/1027 complete, functions 12226/12563 matched. +units 920/1027 complete, functions 12228/12563 matched. decompiled = code with a C/C++ implementation (objdiff fuzzy), matched = byte-exact code, linked = code actually linked into the DOL, data = byte-exact data -- 2.49.1 From d9fbf88fb8fcce715fab661f1fe8be49f007efcd Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Thu, 1 Oct 2026 19:09:22 -0500 Subject: [PATCH 2/5] cleanup(eZiText): rename work unk_0x18 to subLanguage (#683) Assigned from parameters->subLanguage in zi8getc2; Matching users zi8is/zi8misc/zaddress updated. --- libs/RVLMiddleware/eZiText/include/zi8clib/zitypes.h | 2 +- libs/RVLMiddleware/eZiText/src/clib/zaddress.c | 2 +- libs/RVLMiddleware/eZiText/src/clib/zi8getc2.c | 2 +- libs/RVLMiddleware/eZiText/src/clib/zi8is.c | 8 ++++---- libs/RVLMiddleware/eZiText/src/clib/zi8misc.c | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/libs/RVLMiddleware/eZiText/include/zi8clib/zitypes.h b/libs/RVLMiddleware/eZiText/include/zi8clib/zitypes.h index dc0f7069..64c9c64c 100644 --- a/libs/RVLMiddleware/eZiText/include/zi8clib/zitypes.h +++ b/libs/RVLMiddleware/eZiText/include/zi8clib/zitypes.h @@ -217,7 +217,7 @@ struct __zi8_work_data_s { ziU16 unk_0x14; ziU8 unk_0x16; ziU8 unk_0x17; - ziU8 unk_0x18; + ziU8 subLanguage; // 0x18 ziU8 unk_0x19; ziU16 unk_0x1A; ziU8 unk_0x1C[3]; diff --git a/libs/RVLMiddleware/eZiText/src/clib/zaddress.c b/libs/RVLMiddleware/eZiText/src/clib/zaddress.c index 6204a880..f97c7948 100644 --- a/libs/RVLMiddleware/eZiText/src/clib/zaddress.c +++ b/libs/RVLMiddleware/eZiText/src/clib/zaddress.c @@ -55,7 +55,7 @@ ziU32 Zi8GetTableData(ziU8 lang, ziU8 tableIdx, ziU8 memberId ZI_NEED_WORK) { if (langIdx-- != 0) { tableData = ZI_WORK->langEntries[langIdx].tableData; if ((lang == ZI8_LANG_ZH) && (tableData[3] >= 4) && - ((ZI_WORK->unk_0x18 == 1) || (ZI_WORK->unk_0x18 == 0x80) || (ZI_WORK->unk_0x18 == 0x40))) { + ((ZI_WORK->subLanguage == 1) || (ZI_WORK->subLanguage == 0x80) || (ZI_WORK->subLanguage == 0x40))) { offset = ((tableData[0x8B] << 0x10) + (tableData[0x8C] << 8) + tableData[0x8D]); if (offset != 0) { tableData += offset; diff --git a/libs/RVLMiddleware/eZiText/src/clib/zi8getc2.c b/libs/RVLMiddleware/eZiText/src/clib/zi8getc2.c index 1d89cb98..f2f0e586 100644 --- a/libs/RVLMiddleware/eZiText/src/clib/zi8getc2.c +++ b/libs/RVLMiddleware/eZiText/src/clib/zi8getc2.c @@ -490,7 +490,7 @@ ziU32 Zi8GetCandidatesOrCount(ziGetParam* parameters, ZiCandidateOptions* option ZI_WORK->unk_0x00 = '\0'; } } - ZI_WORK->unk_0x18 = parameters->subLanguage; + ZI_WORK->subLanguage = parameters->subLanguage; ZI_WORK->unk_0x16 = Zi8GetFormatVersion(1,ZI_WORK) & 2; options->maxCount = ZI_WORK->unk_0x10; options->maxWordLength = ZI_WORK->unk_0x0A; diff --git a/libs/RVLMiddleware/eZiText/src/clib/zi8is.c b/libs/RVLMiddleware/eZiText/src/clib/zi8is.c index 713e68a6..e18a95a2 100644 --- a/libs/RVLMiddleware/eZiText/src/clib/zi8is.c +++ b/libs/RVLMiddleware/eZiText/src/clib/zi8is.c @@ -24,17 +24,17 @@ ziU8 Zi8GetZHCharSet(ziPtr workData) { return 0; } if (Zi8GetTableCount(1, 10, workData) != 0) { - bak = ((struct __zi8_work_data_s*)workData)->unk_0x18; - ((struct __zi8_work_data_s*)workData)->unk_0x18 = 1; + bak = ((struct __zi8_work_data_s*)workData)->subLanguage; + ((struct __zi8_work_data_s*)workData)->subLanguage = 1; addr = Zi8GetTableAddress(1, 10, workData); p = (ziU8*)addr; v0 = (ziU16)((ziU16)p[0] | ((ziU16)p[1] << 8)); - ((struct __zi8_work_data_s*)workData)->unk_0x18 = 0; + ((struct __zi8_work_data_s*)workData)->subLanguage = 0; addr = Zi8GetTableAddress(1, 10, workData); p = (ziU8*)addr; v1 = (ziU16)((ziU16)p[2] | ((ziU16)p[3] << 8)); v2 = (ziU16)((ziU16)p[4] | ((ziU16)p[5] << 8)); - ((struct __zi8_work_data_s*)workData)->unk_0x18 = bak; + ((struct __zi8_work_data_s*)workData)->subLanguage = bak; if (v0 != 0) { if (v0 > 0x4E20) { charSet |= 8; diff --git a/libs/RVLMiddleware/eZiText/src/clib/zi8misc.c b/libs/RVLMiddleware/eZiText/src/clib/zi8misc.c index 067e4af2..e7dd2fd0 100644 --- a/libs/RVLMiddleware/eZiText/src/clib/zi8misc.c +++ b/libs/RVLMiddleware/eZiText/src/clib/zi8misc.c @@ -65,7 +65,7 @@ ziU16 Zi8Uni2Ptr(ziU16 ch, ziE12* buf ZI_NEED_WORK) { } } e = (ziU8*)table; - if (WORKP->unk_0x1B18 != ZI8_NULL && WORKP->unk_0x1B24 == WORKP->unk_0x18) { + 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); goto map; -- 2.49.1 From 5ac1f65c4a6e2b9e56a72b31941f3c6054baf26a Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Thu, 1 Oct 2026 19:09:49 -0500 Subject: [PATCH 3/5] cleanup(tiInputForm): name unused N_KOR/N_CHN sdata strings (#684) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit lbl_816973A4 → scN_KOR, lbl_816973AC → scN_CHN. --- config/43U/symbols.txt | 4 ++-- src/keyboard/tiInputForm.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/43U/symbols.txt b/config/43U/symbols.txt index edbcfa9e..41cf75f2 100644 --- a/config/43U/symbols.txt +++ b/config/43U/symbols.txt @@ -22275,8 +22275,8 @@ lbl_81697394 = .sdata:0x81697394; // type:object size:0x4 data:wstring lbl_81697398 = .sdata:0x81697398; // type:object size:0x4 lbl_8169739C = .sdata:0x8169739C; // type:object size:0x4 lbl_816973A0 = .sdata:0x816973A0; // type:object size:0x4 data:4byte -lbl_816973A4 = .sdata:0x816973A4; // type:object size:0x6 data:string -lbl_816973AC = .sdata:0x816973AC; // type:object size:0x6 data:string +scN_KOR = .sdata:0x816973A4; // type:object size:0x6 data:string +scN_CHN = .sdata:0x816973AC; // type:object size:0x6 data:string sbCompatibleFilterEnabled__Q39textinput9inputform13DeadKeyStream = .sdata:0x816973B2; // type:object size:0x1 data:byte mbHyphen__Q29textinput9inputform = .sdata:0x816973B3; // type:object size:0x1 data:byte lbl_816973B4 = .sdata:0x816973B4; // type:object size:0x4 diff --git a/src/keyboard/tiInputForm.cpp b/src/keyboard/tiInputForm.cpp index b5408084..1b254521 100644 --- a/src/keyboard/tiInputForm.cpp +++ b/src/keyboard/tiInputForm.cpp @@ -151,8 +151,8 @@ extern "C" const char scT_title_textKOR[]; extern "C" const char scN_separateBarCHN[]; extern "C" const char scT_2l_TextBoxCHN[]; extern "C" const char scT_title_textCHN[]; -extern "C" const char lbl_816973A4[]; -extern "C" const char lbl_816973AC[]; +extern "C" const char scN_KOR[]; +extern "C" const char scN_CHN[]; #pragma pop extern "C" const f32 scInputFormZeroF; extern "C" void _savegpr_20(); -- 2.49.1 From fed31b69b6e31473842c24734915f62f8466a84f Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Thu, 1 Oct 2026 19:09:54 -0500 Subject: [PATCH 4/5] cleanup(iplBoardObject): name StandData step and angle index (#685) Rename StandData lerp counter and angle index used by stt_stand. --- include/scene/board/iplBoardObject.h | 6 +++--- src/scene/board/iplBoardObject.cpp | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/scene/board/iplBoardObject.h b/include/scene/board/iplBoardObject.h index 0319f1bc..1affa63d 100644 --- a/include/scene/board/iplBoardObject.h +++ b/include/scene/board/iplBoardObject.h @@ -162,14 +162,14 @@ namespace ipl { class { public: void init() { - unk_0x0C = -1; + mAngleIdx = -1; pos.x = 0.0f; pos.y = 0.0f; } math::VEC2 pos; // pos - int unk_0x08; - int unk_0x0C; + int mStep; + int mAngleIdx; } mStandData; // 0xE4 picture mPicture; // 0xF4 diff --git a/src/scene/board/iplBoardObject.cpp b/src/scene/board/iplBoardObject.cpp index 2c7b6f5a..3130a4d3 100644 --- a/src/scene/board/iplBoardObject.cpp +++ b/src/scene/board/iplBoardObject.cpp @@ -485,16 +485,16 @@ namespace ipl { } void BoardObject::stt_stand() { - f32 degrees = mStandData.unk_0x0C * 30.0f + 30.0f; + f32 degrees = mStandData.mAngleIdx * 30.0f + 30.0f; f32 cosF = nw4r::math::CosFIdx(degrees * 0.7111111f); - degrees = mStandData.unk_0x0C * 30.0f + 30.0f; + degrees = mStandData.mAngleIdx * 30.0f + 30.0f; f32 sinF = nw4r::math::SinFIdx(degrees * 0.7111111f); math::VEC2 standPos; __ct__Q33ipl4math4VEC2Fff(&standPos, sinF * 160.0f, cosF * 160.0f); - mBoardPos = (((mStandData.pos * (f32)(10 - mStandData.unk_0x08)) + (standPos * mStandData.unk_0x08)) / 10.0f); + mBoardPos = (((mStandData.pos * (f32)(10 - mStandData.mStep)) + (standPos * mStandData.mStep)) / 10.0f); - if ((mStandData.unk_0x08 += 1) > 10) { + if ((mStandData.mStep += 1) > 10) { mStandData.init(); mState = STATE_NORMAL; } -- 2.49.1 From 802960edff445027f4b2376c17adbb3c0d5d6054 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Thu, 1 Oct 2026 19:09:59 -0500 Subject: [PATCH 5/5] cleanup(iplButton): name anim-wait and new-mail anm flags Rename Button calc busy flag and new-mail animation controls; update ChannelTitle setter call sites. --- include/scene/button/iplButton.h | 10 +++++----- src/scene/button/iplButton.cpp | 18 +++++++++--------- src/scene/channelTitle/iplChannelTitle.cpp | 4 ++-- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/include/scene/button/iplButton.h b/include/scene/button/iplButton.h index 7777e532..abd9dfe1 100644 --- a/include/scene/button/iplButton.h +++ b/include/scene/button/iplButton.h @@ -309,8 +309,8 @@ namespace ipl { return mbArrowVisible[i]; } - void setUnk_0x105(bool flag) { - unk_0x105 = flag; + void setSuppressNewMailAnm(bool flag) { + mbSuppressNewMailAnm = flag; } protected: @@ -354,7 +354,7 @@ namespace ipl { ANIM_MAX, }; - int unk_0x54; + int mAnimWait; layout::Object* mpLayout; // 0x58 nand::LayoutFile* mpLayoutFile; // 0x5C @@ -373,8 +373,8 @@ namespace ipl { BOOL mbHovered[BTN_MAX]; // 0xD8 - bool unk_0x104; - bool unk_0x105; + bool mbNewMailAnm; + bool mbSuppressNewMailAnm; utility::timer mTimer; // 0x108 bool mbEnabled; // 0x110 diff --git a/src/scene/button/iplButton.cpp b/src/scene/button/iplButton.cpp index 593da7a9..575acff9 100644 --- a/src/scene/button/iplButton.cpp +++ b/src/scene/button/iplButton.cpp @@ -185,7 +185,7 @@ namespace ipl { }; // clang-format on - Button::Button(EGG::Heap* heap) : Base(heap), unk_0x54(0), mOptOutBtn(), mSdMenuBtn(), unk_0x104(false), unk_0x105(false), mReservedCmd() { + Button::Button(EGG::Heap* heap) : Base(heap), mAnimWait(0), mOptOutBtn(), mSdMenuBtn(), mbNewMailAnm(false), mbSuppressNewMailAnm(false), mReservedCmd() { for (int i = 0; i < ARROW_BTN_MAX; i++) { mbArrowVisible[i] = true; } @@ -293,7 +293,7 @@ namespace ipl { } void Button::calc() { - switch (unk_0x54) { + switch (mAnimWait) { case 0: { if (mReservedCmd.get_current_index() != 0) { Command popped = mReservedCmd.get_popped_item(); @@ -312,7 +312,7 @@ namespace ipl { if (!mpButtonAnim[ANIM_SCENE_CHANGE]->isPlaying() && !mpButtonAnim[ANIM_CALENDAR_EXIT]->isPlaying() && !mpButtonAnim[ANIM_COMMON_BUTTON]->isPlaying() && !mpButtonAnim[ANIM_TRASH_DELETE]->isPlaying() && !mOptOutBtn.mpLayout->isPlaying()) { - unk_0x54 = 0; + mAnimWait = 0; } break; } @@ -335,7 +335,7 @@ namespace ipl { mpBalloons[i]->calc(); } - if (unk_0x104 && !unk_0x105 && mTimer()) { + if (mbNewMailAnm && !mbSuppressNewMailAnm && mTimer()) { startNewMailAnm_(); } } @@ -457,7 +457,7 @@ namespace ipl { bool Button::isActive() const { bool result = false; - if (isSceneCreated() && unk_0x54 != 1) { + if (isSceneCreated() && mAnimWait != 1) { result = true; } return result; @@ -668,7 +668,7 @@ namespace ipl { } } - unk_0x54 = 1; + mAnimWait = 1; } void Button::initArrowAppearance(int arrowType, bool bAppear) { @@ -752,8 +752,8 @@ namespace ipl { mpButtonAnim[ANIM_BOARD_BBS_NEW]->setMinFrame(scLoopAnmFrame.start); mpButtonAnim[ANIM_BOARD_BBS_NEW]->setMaxFrame(scLoopAnmFrame.end); mpButtonAnim[ANIM_BOARD_BBS_NEW]->setSpeed(1.0f); - unk_0x104 = true; - if (!unk_0x105) { + mbNewMailAnm = true; + if (!mbSuppressNewMailAnm) { startNewMailAnm_(); } } @@ -773,7 +773,7 @@ namespace ipl { mpButtonAnim[ANIM_BOARD_BBS_NEW]->setMaxFrame(1.0f); mpButtonAnim[ANIM_BOARD_BBS_NEW]->setSpeed(0.0f); mpButtonAnim[ANIM_BOARD_BBS_NEW]->play(); - unk_0x104 = false; + mbNewMailAnm = false; } void Button::enableBtn() { diff --git a/src/scene/channelTitle/iplChannelTitle.cpp b/src/scene/channelTitle/iplChannelTitle.cpp index d4480059..d9dbc152 100644 --- a/src/scene/channelTitle/iplChannelTitle.cpp +++ b/src/scene/channelTitle/iplChannelTitle.cpp @@ -449,7 +449,7 @@ namespace ipl { mpRsoExpHeaps[0] = EGG::ExpHeap::create(0x80000, System::getMem2App(), MEM_HEAP_OPT_THREAD_SAFE | MEM_HEAP_OPT_DEBUG_FILL); mpRsoExpHeaps[1] = EGG::ExpHeap::create(0x80000, System::getMem2App(), MEM_HEAP_OPT_THREAD_SAFE | MEM_HEAP_OPT_DEBUG_FILL); - getButton()->setUnk_0x105(true); + getButton()->setSuppressNewMailAnm(true); } void ChannelTitle::calcCommon() { @@ -931,7 +931,7 @@ namespace ipl { System::getChannelManager()->resetChJumpLoad(); - getButton()->setUnk_0x105(false); + getButton()->setSuppressNewMailAnm(false); } BOOL ChannelTitle::isResetAcceptable() const { -- 2.49.1