From c1cccf1c2c9ef6531a5f914c1e67b7032dbbc273 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Thu, 1 Oct 2026 19:07:17 -0500 Subject: [PATCH 1/2] cleanup(iplTextWriter): rename unk_0x7D to mbResetAcceptable (#682) Field is exactly what isResetAcceptable() returns; also update LetterWriter uses of the inherited member. --- include/scene/textWriter/iplTextWriter.h | 4 ++-- src/scene/letterWriter/iplLetterWriter.cpp | 6 +++--- src/scene/textWriter/iplTextWriter.cpp | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/scene/textWriter/iplTextWriter.h b/include/scene/textWriter/iplTextWriter.h index f55d713b..07dfbcdd 100644 --- a/include/scene/textWriter/iplTextWriter.h +++ b/include/scene/textWriter/iplTextWriter.h @@ -42,7 +42,7 @@ namespace ipl { }; virtual BOOL isResetAcceptable() const { - return unk_0x7D; + return mbResetAcceptable; } virtual void prepare(); @@ -108,7 +108,7 @@ namespace ipl { static const int mToFace_Duration = 20; bool mbClosing; // 0x7C - bool unk_0x7D; + bool mbResetAcceptable; wchar_t* mWCString; // 0x80 diff --git a/src/scene/letterWriter/iplLetterWriter.cpp b/src/scene/letterWriter/iplLetterWriter.cpp index 0218bbbc..b2222c3f 100644 --- a/src/scene/letterWriter/iplLetterWriter.cpp +++ b/src/scene/letterWriter/iplLetterWriter.cpp @@ -71,7 +71,7 @@ namespace ipl { mSelectedFaceId = -1; mpNigaoe = NULL; mbClosing = false; - unk_0x7D = true; + mbResetAcceptable = true; mNwc24ErrCountdown = 0; mbToFriend = false; @@ -385,7 +385,7 @@ namespace ipl { snd::getSystem()->startSE("WIPL_SE_DECIDE"); - unk_0x7D = false; + mbResetAcceptable = false; // Copy letter contents wmemcpy(mWCString, getMemoInputForm()->getSendString()->getWCString(), WC_STRING_LENGTH); @@ -409,7 +409,7 @@ namespace ipl { closeNWC24(); } - unk_0x7D = true; + mbResetAcceptable = true; // Button animation button->animation(Button::IDANIM_SELECT_CREATE_R); diff --git a/src/scene/textWriter/iplTextWriter.cpp b/src/scene/textWriter/iplTextWriter.cpp index 5e72244c..e1400159 100644 --- a/src/scene/textWriter/iplTextWriter.cpp +++ b/src/scene/textWriter/iplTextWriter.cpp @@ -36,7 +36,7 @@ namespace ipl { } TextWriter::TextWriter(EGG::Heap* heap) - : FaderSceneBase(heap), mState(STATE_NORMAL), mSelectedFaceId(-1), mpNigaoe(NULL), mbClosing(false), unk_0x7D(true), + : FaderSceneBase(heap), mState(STATE_NORMAL), mSelectedFaceId(-1), mpNigaoe(NULL), mbClosing(false), mbResetAcceptable(true), mNwc24ErrCountdown(0) { setSceneParentFlags(SCN_PARENTFLAG_DRAW | SCN_PARENTFLAG_CALC); } @@ -87,7 +87,7 @@ namespace ipl { mSelectedFaceId = -1; mpNigaoe = NULL; mbClosing = false; - unk_0x7D = true; + mbResetAcceptable = true; mNwc24ErrCountdown = 0; // Text balloon for Mii face @@ -398,7 +398,7 @@ namespace ipl { snd::getSystem()->startSE("WIPL_SE_DECIDE"); - unk_0x7D = false; + mbResetAcceptable = false; // Copy memo contents wmemcpy(mWCString, getMemoInputForm()->getSendString()->getWCString(), WC_STRING_LENGTH); @@ -412,7 +412,7 @@ namespace ipl { closeNWC24(); - unk_0x7D = true; + mbResetAcceptable = true; // Receive sent memo System::receiveImmediately(); -- 2.49.1 From 7ae9099d966e0f37ef24e2b88532b97fd08edcd4 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Thu, 1 Oct 2026 19:07:55 -0500 Subject: [PATCH 2/2] cleanup(iplCalendar): name draw list and search-task flag Rename the secondary date list used for draw order and the vBOOL that tracks the jam search task. --- include/scene/calendar/iplCalendar.h | 4 ++-- src/scene/calendar/iplCalendar.cpp | 26 +++++++++++++------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/include/scene/calendar/iplCalendar.h b/include/scene/calendar/iplCalendar.h index 6a77e602..f9d37213 100644 --- a/include/scene/calendar/iplCalendar.h +++ b/include/scene/calendar/iplCalendar.h @@ -95,9 +95,9 @@ namespace ipl { public: nw4r::ut::List mDateList; // 0x84 - nw4r::ut::List unk_0x90; + nw4r::ut::List mDrawList; bool mbScrolling; // 0x9C - vBOOL unk_0xA0; + vBOOL mbSearchTaskRunning; BOOL mbTaskCanceled; // 0xA4 vBOOL mbBackToBoardAlt; // 0xA8 bool mbAsian; // 0xAC diff --git a/src/scene/calendar/iplCalendar.cpp b/src/scene/calendar/iplCalendar.cpp index 0da2b820..a12a9cf6 100644 --- a/src/scene/calendar/iplCalendar.cpp +++ b/src/scene/calendar/iplCalendar.cpp @@ -236,10 +236,10 @@ namespace ipl { Calendar::Calendar(EGG::Heap* heap) : FaderSceneBase(heap), ButtonEventHandlerBase(), mState(STATE_NORMAL), mPrevState(STATE_NORMAL), mpLayout(NULL), mpLayoutFile(NULL), - mpGroupAnim(NULL), mpInitAnim(NULL), mpBoardDate(NULL), mpSelectDate(NULL), mbScrolling(false), unk_0xA0(FALSE), mbTaskCanceled(FALSE), + mpGroupAnim(NULL), mpInitAnim(NULL), mpBoardDate(NULL), mpSelectDate(NULL), mbScrolling(false), mbSearchTaskRunning(FALSE), mbTaskCanceled(FALSE), mbBackToBoardAlt(FALSE) { nw4r::ut::List_Init(&mDateList, offsetof(Date, mNode1)); - nw4r::ut::List_Init(&unk_0x90, offsetof(Date, mNode2)); + nw4r::ut::List_Init(&mDrawList, offsetof(Date, mNode2)); mbAsian = System::getRegion() == SC_PRODUCT_AREA_JPN || (u32)System::getRegion() == SC_PRODUCT_AREA_KOR || (u32)System::getRegion() == SC_PRODUCT_AREA_CHN; @@ -262,7 +262,7 @@ namespace ipl { for (int i = 0; i < (DATE_COUNT * 2); i++) { Date* date = new Date(getSceneHeap(), mpLayoutFile, "arc", "my_IplTop_f.brlyt"); if (i < DATE_COUNT) { - nw4r::ut::List_Append(&unk_0x90, date); + nw4r::ut::List_Append(&mDrawList, date); } nw4r::ut::List_Append(&mDateList, date); } @@ -382,10 +382,10 @@ namespace ipl { } } else { for (u32 i = 0; i < DATE_COUNT; i++) { - ((Date*)nw4r::ut::List_GetNth(&unk_0x90, i))->draw(false); + ((Date*)nw4r::ut::List_GetNth(&mDrawList, i))->draw(false); } for (u32 i = 0; i < DATE_COUNT; i++) { - ((Date*)nw4r::ut::List_GetNth(&unk_0x90, i))->draw(true); + ((Date*)nw4r::ut::List_GetNth(&mDrawList, i))->draw(true); } } } @@ -425,8 +425,8 @@ namespace ipl { } void Calendar::onPointDate(Date* date) { - nw4r::ut::List_Remove(&unk_0x90, date); - nw4r::ut::List_Append(&unk_0x90, date); + nw4r::ut::List_Remove(&mDrawList, date); + nw4r::ut::List_Append(&mDrawList, date); } void Calendar::onTrigDate(Date* date) { @@ -503,7 +503,7 @@ namespace ipl { } void Calendar::on_wait_task() { - if (unk_0xA0 == FALSE) { + if (mbSearchTaskRunning == FALSE) { switch (mPrevState) { case STATE_SCROLL_RIGHT: { do_scroll_r(); @@ -535,7 +535,7 @@ namespace ipl { mPrevState = mState; mState = STATE_SCROLL_RIGHT; - if (unk_0xA0 == TRUE) { + if (mbSearchTaskRunning == TRUE) { mbTaskCanceled = TRUE; mPrevState = STATE_SCROLL_RIGHT; mState = STATE_WAIT_TASK; @@ -577,7 +577,7 @@ namespace ipl { mPrevState = mState; mState = STATE_SCROLL_LEFT; - if (unk_0xA0) { + if (mbSearchTaskRunning) { mbTaskCanceled = TRUE; mPrevState = STATE_SCROLL_LEFT; mState = STATE_WAIT_TASK; @@ -616,7 +616,7 @@ namespace ipl { mPrevState = mState; mState = STATE_DONE; - if (unk_0xA0 == TRUE) { + if (mbSearchTaskRunning == TRUE) { OSReport("検索タスク終了要求\n"); // "Search task termination requested" mbTaskCanceled = TRUE; mPrevState = mState; @@ -863,14 +863,14 @@ namespace ipl { OSReport("タスク終了\n"); // Task end - calendar->unk_0xA0 = FALSE; + calendar->mbSearchTaskRunning = FALSE; calendar->mbTaskCanceled = FALSE; } } void Calendar::exec_search_task() { OSReport("検索開始\n"); // Start search - unk_0xA0 = TRUE; + mbSearchTaskRunning = TRUE; System::getTask1()->requestJam(search_task_, this, NULL); } -- 2.49.1