From f1bcb9d78cc9f4fa4956ef6f231834db03009f9f Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Thu, 1 Oct 2026 18:14:53 -0500 Subject: [PATCH 1/5] cleanup(ChannelTitle): name disk TMD/tmp-title task callbacks (#628) Rename address-suffixed static tasks to markTmdReadyTask and deleteTmpTitleContentTask. --- config/43U/symbols.txt | 4 ++-- include/scene/channelTitle/iplChannelTitle.h | 4 ++-- src/scene/channelTitle/iplChannelTitle.cpp | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/config/43U/symbols.txt b/config/43U/symbols.txt index 350f1b72..b215d608 100644 --- a/config/43U/symbols.txt +++ b/config/43U/symbols.txt @@ -3930,9 +3930,9 @@ isLimitOutChannel__Q33ipl5scene12ChannelTitleFv = .text:0x813B9F8C; // type:func dispTimeLimitWindow__Q33ipl5scene12ChannelTitleFv = .text:0x813B9FE0; // type:function size:0x104 getTimeLimitString__Q33ipl5scene12ChannelTitleFPwUlUl = .text:0x813BA0E4; // type:function size:0x484 getTmdTask__Q33ipl5scene12ChannelTitleFPv = .text:0x813BA568; // type:function size:0x11C -iplChannelTitle_813BA684__Q33ipl5scene12ChannelTitleFPv = .text:0x813BA684; // type:function size:0xC +markTmdReadyTask__Q33ipl5scene12ChannelTitleFPv = .text:0x813BA684; // type:function size:0xC getTicketLimitTask__Q33ipl5scene12ChannelTitleFPv = .text:0x813BA690; // type:function size:0xF4 -iplChannelTitle_813BA784__Q33ipl5scene12ChannelTitleFPv = .text:0x813BA784; // type:function size:0xE0 +deleteTmpTitleContentTask__Q33ipl5scene12ChannelTitleFPv = .text:0x813BA784; // type:function size:0xE0 isTimeLimitedTicket__Q33ipl5scene12ChannelTitleFP12ESTicketViewPUl = .text:0x813BA864; // type:function size:0xF4 startGetTicketLimitTask__Q33ipl5scene12ChannelTitleFv = .text:0x813BA958; // type:function size:0x8C updateLockedMsg__Q33ipl5scene12ChannelTitleFi = .text:0x813BA9E4; // type:function size:0x16C diff --git a/include/scene/channelTitle/iplChannelTitle.h b/include/scene/channelTitle/iplChannelTitle.h index 8d7c6b60..d6f0fa86 100644 --- a/include/scene/channelTitle/iplChannelTitle.h +++ b/include/scene/channelTitle/iplChannelTitle.h @@ -293,8 +293,8 @@ namespace ipl { LOCKED_DIALOG_ANIM_MAX, }; - static void iplChannelTitle_813BA684(void* work); - static void iplChannelTitle_813BA784(void* work); + static void markTmdReadyTask(void* work); + static void deleteTmpTitleContentTask(void* work); static void getTmdTask(void* work); static void getTicketLimitTask(void* work); static BOOL isTimeLimitedTicket(ESTicketView * ticket, u32* remainTime = NULL); diff --git a/src/scene/channelTitle/iplChannelTitle.cpp b/src/scene/channelTitle/iplChannelTitle.cpp index eba4177e..d4480059 100644 --- a/src/scene/channelTitle/iplChannelTitle.cpp +++ b/src/scene/channelTitle/iplChannelTitle.cpp @@ -2289,7 +2289,7 @@ namespace ipl { unk_0x360 = false; - System::getTask1()->request(iplChannelTitle_813BA684, this, NULL); + System::getTask1()->request(markTmdReadyTask, this, NULL); mState = STATE_WAIT_TMD; } else { @@ -2301,7 +2301,7 @@ namespace ipl { unk_0x360 = false; - System::getTask1()->request(iplChannelTitle_813BA684, this, NULL); + System::getTask1()->request(markTmdReadyTask, this, NULL); mState = STATE_WAIT_TMD; } @@ -2408,7 +2408,7 @@ namespace ipl { if (mTmpTitleID != 0) { SCSetTmpTitleID(0); - System::getTask1()->request(iplChannelTitle_813BA784, this, NULL); + System::getTask1()->request(deleteTmpTitleContentTask, this, NULL); } else { unk_0x370 = true; } @@ -2673,7 +2673,7 @@ namespace ipl { chanTtl->unk_0x360 = true; } - void ChannelTitle::iplChannelTitle_813BA684(void* work) { + void ChannelTitle::markTmdReadyTask(void* work) { ChannelTitle* chanTtl = static_cast(work); chanTtl->unk_0x360 = true; } @@ -2699,7 +2699,7 @@ namespace ipl { } #pragma pop - void ChannelTitle::iplChannelTitle_813BA784(void* work) { + void ChannelTitle::deleteTmpTitleContentTask(void* work) { ChannelTitle* chanTtl = static_cast(work); if (chanTtl->mTmpTitleID != 0) { -- 2.49.1 From 9d6f9dce74986bf6fd7f28a402e47c04be584299 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Thu, 1 Oct 2026 18:15:18 -0500 Subject: [PATCH 2/5] cleanup(Contest): name NAT detection callback (#629) Rename iplContest_813D54F8 to onNatDetectionDone. --- config/43U/symbols.txt | 2 +- src/scene/nakamuraTest/iplContest.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/43U/symbols.txt b/config/43U/symbols.txt index b215d608..a24ec578 100644 --- a/config/43U/symbols.txt +++ b/config/43U/symbols.txt @@ -4441,7 +4441,7 @@ IPLContestAlloc = .text:0x813D5240; // type:function size:0x60 IPLContestFree = .text:0x813D52A0; // type:function size:0x64 sNHTTPReqCallback = .text:0x813D5304; // type:function size:0x1E0 sNHTTPCleanupCallback = .text:0x813D54E4; // type:function size:0x14 -iplContest_813D54F8 = .text:0x813D54F8; // type:function size:0x6C +onNatDetectionDone = .text:0x813D54F8; // type:function size:0x6C AddressToString = .text:0x813D5564; // type:function size:0xE4 DiscoverReachability = .text:0x813D5648; // type:function size:0xE0 DiscoverMapping = .text:0x813D5728; // type:function size:0xE4 diff --git a/src/scene/nakamuraTest/iplContest.c b/src/scene/nakamuraTest/iplContest.c index 877d46e0..3759f411 100644 --- a/src/scene/nakamuraTest/iplContest.c +++ b/src/scene/nakamuraTest/iplContest.c @@ -48,7 +48,7 @@ void IPLContestGSFree(void* block); void* IPLContestGSRealloc(void* oldBlock, u32 newSize); void* IPLContestGSMemalign(u32 align, u32 size); -void iplContest_813D54F8(BOOL success, NAT nat); +void onNatDetectionDone(BOOL success, NAT nat); void* IPLContestAlloc(int size); void IPLContestFree(void* block, u32 _unused); @@ -227,7 +227,7 @@ int IPLContestProcess() { break; } case 2: { - NNStartNatDetection(iplContest_813D54F8); + NNStartNatDetection(onNatDetectionDone); g_session.unk_0x030 = 3; OSReport("Port mapping detectioning test has been started.\n"); g_session.detectStartTime = OSGetTime(); @@ -461,7 +461,7 @@ void sNHTTPCleanupCallback() { g_session.state = 3; } -void iplContest_813D54F8(gsi_bool success, NAT nat) { +void onNatDetectionDone(gsi_bool success, NAT nat) { if (success) { g_session.nat = nat; g_session.unk_0x03c = 0; -- 2.49.1 From 921234fdacb125af79f7302188804fe80642033c Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Thu, 1 Oct 2026 18:15:23 -0500 Subject: [PATCH 3/5] cleanup(rvl_dec): name literal-copy goto label (#631) Rename LAB_813325b8 to copy_lit_tail. --- src/system/rvl_dec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/rvl_dec.c b/src/system/rvl_dec.c index b1dbcb90..297dcaf7 100644 --- a/src/system/rvl_dec.c +++ b/src/system/rvl_dec.c @@ -674,7 +674,7 @@ int Rvl_decode_ash(u8* out, u8* in) { shifted = shifted - nodeVal; tmp15 = nodeVal >> 3; if (tmp15 == 0) { - goto LAB_813325b8; + goto copy_lit_tail; } do { *out = litPtr[-1]; @@ -690,7 +690,7 @@ int Rvl_decode_ash(u8* out, u8* in) { tmp15 = tmp15 - 1; } while (tmp15 != 0); for (nodeVal = nodeVal & 7; nodeVal != 0; nodeVal = nodeVal - 1) { -LAB_813325b8: +copy_lit_tail: dst = litPtr - 1; litPtr = litPtr + 1; *out = *dst; -- 2.49.1 From 728bfa984b7c333bfca8c3da28f2b648662678db Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Thu, 1 Oct 2026 18:15:59 -0500 Subject: [PATCH 4/5] cleanup(TMCJPEG): name decode-buffer refill helpers (#632) Rename TMCJPEG_814EAF50/814EB108 to refillJpegBufferAfterFF and refillJpegBuffer. --- config/43U/symbols.txt | 4 +-- .../TMC_JPEG/src/buffer/buffer_system.c | 32 +++++++++---------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/config/43U/symbols.txt b/config/43U/symbols.txt index a24ec578..79e7534a 100644 --- a/config/43U/symbols.txt +++ b/config/43U/symbols.txt @@ -8879,8 +8879,8 @@ TMCJPEGDEC_move_ptr = .text:0x814EAD28; // type:function size:0xE4 TMCJPEGDEC_load_buff = .text:0x814EAE0C; // type:function size:0x124 TMCJPEGDEC_get_position = .text:0x814EAF30; // type:function size:0x10 TMCJPEGDEC_chk_possible_size = .text:0x814EAF40; // type:function size:0x10 -TMCJPEG_814EAF50 = .text:0x814EAF50; // type:function size:0x1B8 scope:local -TMCJPEG_814EB108 = .text:0x814EB108; // type:function size:0x198 scope:local +refillJpegBufferAfterFF = .text:0x814EAF50; // type:function size:0x1B8 scope:local +refillJpegBuffer = .text:0x814EB108; // type:function size:0x198 scope:local TMCJPEGDEC_init_buff_thumbnail = .text:0x814EB2A0; // type:function size:0x88 TMCJPEGDEC_init_buff = .text:0x814EB328; // type:function size:0x10 TMCJPEGDEC_rewind_ptr = .text:0x814EB338; // type:function size:0xA4 diff --git a/libs/RVLMiddleware/TMC_JPEG/src/buffer/buffer_system.c b/libs/RVLMiddleware/TMC_JPEG/src/buffer/buffer_system.c index d9baf31a..4d1066b6 100644 --- a/libs/RVLMiddleware/TMC_JPEG/src/buffer/buffer_system.c +++ b/libs/RVLMiddleware/TMC_JPEG/src/buffer/buffer_system.c @@ -1,7 +1,7 @@ #include -static s32 TMCJPEG_814EAF50(TMCCJPEGDecWork* work); -static s32 TMCJPEG_814EB108(TMCCJPEGDecWork* work); +static s32 refillJpegBufferAfterFF(TMCCJPEGDecWork* work); +static s32 refillJpegBuffer(TMCCJPEGDecWork* work); s32 TMCJPEGDEC_init_ptr_buff(TMCCJPEGDecWork* work, void* param) { u32 readSize; @@ -52,7 +52,7 @@ s32 TMCJPEGDEC_get_byte(u8* dst, TMCCJPEGDecWork* work) { if (work->pBufCur >= work->pBufEnd) { if (work->remaining != 0) { - s32 r = TMCJPEG_814EB108(work); + s32 r = refillJpegBuffer(work); if (r < 0) { return r; } @@ -69,7 +69,7 @@ s32 TMCJPEGDEC_get_byte(u8* dst, TMCCJPEGDecWork* work) { if (cur >= work->pBufEnd) { if (work->remaining != 0) { - s32 r = TMCJPEG_814EB108(work); + s32 r = refillJpegBuffer(work); if (r < 0) { return r; } @@ -92,7 +92,7 @@ s32 TMCJPEGDEC_get_wbyte(u16* dst, TMCCJPEGDecWork* work) { if (work->pBufCur >= work->pBufEnd) { if (work->remaining != 0) { - r = TMCJPEG_814EB108(work); + r = refillJpegBuffer(work); if (r < 0) { goto br; } else { @@ -119,7 +119,7 @@ s32 TMCJPEGDEC_get_wbyte(u16* dst, TMCCJPEGDecWork* work) { } if (work->remaining != 0) { - r = TMCJPEG_814EB108(work); + r = refillJpegBuffer(work); if (r >= 0) { goto o1; } @@ -144,7 +144,7 @@ p2: goto r2; } if (work->remaining != 0) { - r = TMCJPEG_814EB108(work); + r = refillJpegBuffer(work); if (r < 0) goto ez; else { @@ -166,7 +166,7 @@ r2: } if (work->remaining != 0) { - r = TMCJPEG_814EB108(work); + r = refillJpegBuffer(work); if (r < 0) goto ez; else { @@ -193,7 +193,7 @@ s32 TMCJPEGDEC_get_sbyte(u8* dst, u32 count, TMCCJPEGDecWork* work) { for (i = 0; i < count; i++) { if (work->pBufCur >= work->pBufEnd) { if (work->remaining != 0) { - r = TMCJPEG_814EB108(work); + r = refillJpegBuffer(work); if (r < 0) { goto copy_byte; } else { @@ -214,7 +214,7 @@ s32 TMCJPEGDEC_get_sbyte(u8* dst, u32 count, TMCCJPEGDecWork* work) { goto r0; } if (work->remaining != 0) { - r = TMCJPEG_814EB108(work); + r = refillJpegBuffer(work); if (r >= 0) { goto r0; } @@ -251,7 +251,7 @@ lp: if (work->remaining == 0) { goto er1; } - r = TMCJPEG_814EB108(work); + r = refillJpegBuffer(work); if (r >= 0) { goto lc; } @@ -271,7 +271,7 @@ lc: if (work->remaining == 0) { goto er2; } - r = TMCJPEG_814EB108(work); + r = refillJpegBuffer(work); if (r >= 0) { goto ret0; } @@ -320,7 +320,7 @@ s32 TMCJPEGDEC_load_buff(TMCCJPEGDecWork* work) { if (work->remaining == 0) { break; } - r = TMCJPEG_814EAF50(work); + r = refillJpegBufferAfterFF(work); if (r < 0) { return r; } @@ -345,7 +345,7 @@ s32 TMCJPEGDEC_load_buff(TMCCJPEGDecWork* work) { if (work->remaining == 0) { break; } - r = TMCJPEG_814EAF50(work); + r = refillJpegBufferAfterFF(work); if (r < 0) { return r; } @@ -364,7 +364,7 @@ s32 TMCJPEGDEC_chk_possible_size(TMCCJPEGDecWork* work) { return work->pBufEnd - work->pBufCur; } -static s32 TMCJPEG_814EAF50(TMCCJPEGDecWork* work) { +static s32 refillJpegBufferAfterFF(TMCCJPEGDecWork* work) { u8 marker; u32 readSize; u8* dest; @@ -410,7 +410,7 @@ static s32 TMCJPEG_814EAF50(TMCCJPEGDecWork* work) { return 0; } -static s32 TMCJPEG_814EB108(TMCCJPEGDecWork* work) { +static s32 refillJpegBuffer(TMCCJPEGDecWork* work) { u8* end; u32 i, j; s32 readSize; -- 2.49.1 From 8588feac89dc99a39aee34cf285dad16de9ba665 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Thu, 1 Oct 2026 18:18:24 -0500 Subject: [PATCH 5/5] Match GC card-removal no-op jump target --- src/scene/memoryCard/iplGCWindow.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/scene/memoryCard/iplGCWindow.cpp b/src/scene/memoryCard/iplGCWindow.cpp index e7c5df77..2e0ebf1e 100644 --- a/src/scene/memoryCard/iplGCWindow.cpp +++ b/src/scene/memoryCard/iplGCWindow.cpp @@ -749,7 +749,7 @@ void GCWindow::onMemEvent(long event, u8 cardState) { break; } goto process_complete; - case 0x15: + default: return; process_complete: @@ -758,6 +758,18 @@ void GCWindow::onMemEvent(long event, u8 cardState) { show_button_ok(); mState = 0xe; break; + case 0: + case 1: + case 3: + case 4: + case 5: + case 6: + case 7: + case 0xB: + case 0xD: + case 0x10: + case 0x15: + break; } } } -- 2.49.1