From 99d6fe20a296fd5ba621df120be82879b860d427 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 14:03:44 -0500 Subject: [PATCH 1/6] cleanup(eZiText): rename work unk_0x1410 to formats (#858) Saved/restored as savedFormats; assigned from formats arrays. --- libs/RVLMiddleware/eZiText/include/zi8clib/zitypes.h | 2 +- libs/RVLMiddleware/eZiText/src/clib/zi8getc2.c | 4 ++-- libs/RVLMiddleware/eZiText/src/clib/ziswordw.c | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libs/RVLMiddleware/eZiText/include/zi8clib/zitypes.h b/libs/RVLMiddleware/eZiText/include/zi8clib/zitypes.h index 300ce3de..c1183293 100644 --- a/libs/RVLMiddleware/eZiText/include/zi8clib/zitypes.h +++ b/libs/RVLMiddleware/eZiText/include/zi8clib/zitypes.h @@ -265,7 +265,7 @@ struct __zi8_work_data_s { ziPtr unk_0x11FC; ziPtr userKeys[0x83]; // 0x1200 ziU8 unk_0x140C[4]; - ziU32 unk_0x1410; + ziU32 formats; // 0x1410 ziU8 unk_0x1414[4]; ziU8 unk_0x1418; ziU8 unk_0x1419; diff --git a/libs/RVLMiddleware/eZiText/src/clib/zi8getc2.c b/libs/RVLMiddleware/eZiText/src/clib/zi8getc2.c index 58b64a8f..39a33f61 100644 --- a/libs/RVLMiddleware/eZiText/src/clib/zi8getc2.c +++ b/libs/RVLMiddleware/eZiText/src/clib/zi8getc2.c @@ -50,10 +50,10 @@ ziBool Zi8ZHsetZYfuzzyPairs(ziFuzzyZYPairs pairs ZI_NEED_WORK) { ziBool Zi8SetLatinSearchOrder(ziU8* searchArray, ziU8 searchSize ZI_NEED_WORK) { if (searchArray == 0 || *searchArray == 0) { - ZI_WORK->unk_0x1410 = (ziU32)Zi8SOdefaultArray; + ZI_WORK->formats = (ziU32)Zi8SOdefaultArray; ZI_WORK->unk_0x1418 = 9; } else { - ZI_WORK->unk_0x1410 = (ziU32)searchArray; + ZI_WORK->formats = (ziU32)searchArray; ZI_WORK->unk_0x1418 = searchSize; } return 1; diff --git a/libs/RVLMiddleware/eZiText/src/clib/ziswordw.c b/libs/RVLMiddleware/eZiText/src/clib/ziswordw.c index 3b6eceff..487f3aae 100644 --- a/libs/RVLMiddleware/eZiText/src/clib/ziswordw.c +++ b/libs/RVLMiddleware/eZiText/src/clib/ziswordw.c @@ -45,7 +45,7 @@ ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) { ziWChar* cursor; ziU8* data; ziU8 formats[8] = {1, 5, 0, 0, 0, 0, 0, 0}; - ziU32 savedFormats = ZI_WORK->unk_0x1410; + ziU32 savedFormats = ZI_WORK->formats; ziU8 savedCount = ZI_WORK->unk_0x1418; ziSearchState search = {0}; Zi8LogError(100, __zi8_work_data); @@ -73,7 +73,7 @@ ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) { request.candidates = ordinals; request.maxCandidates = 1; request.firstCandidate = 0; - ZI_WORK->unk_0x1410 = (ziU32)formats; + ZI_WORK->formats = (ziU32)formats; if (ZI_WORK->unk_0x1C[0] == 2) { ZI_WORK->unk_0x1418 = 0; if (ZI_WORK->unk_0x09 & 1) formats[ZI_WORK->unk_0x1418++] = 1; @@ -87,7 +87,7 @@ ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) { } else if (ZI_WORK->unk_0x1C[0] != 0) ZI_WORK->unk_0x1418 = 2; else ZI_WORK->unk_0x1418 = 1; count = Zi8GetCandidatesOrCount(&request, &search, __zi8_work_data); - ZI_WORK->unk_0x1410 = savedFormats; + ZI_WORK->formats = savedFormats; ZI_WORK->unk_0x1418 = savedCount; if (count != 0) return 1; } -- 2.49.1 From 4e3ab6eae52d971d5508ec1b73657851fb0e521f Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 14:04:10 -0500 Subject: [PATCH 2/6] cleanup(jdec): rename MCU product fields to mcuTotal (#859) Frame unk_0x14 and work unk_0x1804 are mcuX*mcuY totals. --- libs/RVLMiddleware/TMC_JPEG/include/tmc_jpeg_internal.h | 4 ++-- libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec.c | 2 +- libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec_main.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/RVLMiddleware/TMC_JPEG/include/tmc_jpeg_internal.h b/libs/RVLMiddleware/TMC_JPEG/include/tmc_jpeg_internal.h index 79f1b885..b8d4469d 100644 --- a/libs/RVLMiddleware/TMC_JPEG/include/tmc_jpeg_internal.h +++ b/libs/RVLMiddleware/TMC_JPEG/include/tmc_jpeg_internal.h @@ -63,7 +63,7 @@ typedef struct { u8 mcuYRem; // 0x0F u16 mcuYCount; // 0x10 u16 mcuXCount2; // 0x12 - u32 unk_0x14; + u32 mcuTotal; // 0x14 u8 remX; // 0x18 u8 remY; // 0x19 u8 compCount; // 0x1A @@ -142,7 +142,7 @@ struct TMCCJPEGDecWork_t { u8 mcuYRem; // 0x17FF u16 mcuYCount; // 0x1800 u16 mcuXCount2; // 0x1802 - u32 unk_0x1804; + u32 mcuTotal; // 0x1804 u8 remX; // 0x1808 u8 remY; // 0x1809 u8 compCount; // 0x180A diff --git a/libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec.c b/libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec.c index 39255d50..ba2f145c 100644 --- a/libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec.c +++ b/libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec.c @@ -51,7 +51,7 @@ s32 TMCJPEGDEC_Setsize(TMCCJPEGDecWork* work) { } state->componentCount = work->componentCount; - state->result = work->unk_0x1804; + state->result = work->mcuTotal; state->maxX = work->mcuYCount; state->maxY = work->mcuXCount2; diff --git a/libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec_main.c b/libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec_main.c index d4b09d88..03271645 100644 --- a/libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec_main.c +++ b/libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec_main.c @@ -567,7 +567,7 @@ s32 TMCJPEGDEC_scan_varinit(TMCCJPEGDecWork* work) { p->mcuYCount = p->mcuYCount + ((u8)remX != 0 ? 1 : 0); p->mcuXCount2 = p->mcuXCount2 + ((u8)remY != 0 ? 1 : 0); - p->unk_0x14 = (u32)p->mcuYCount * (u32)p->mcuXCount2; + p->mcuTotal = (u32)p->mcuYCount * (u32)p->mcuXCount2; for (idx = 0; idx < (s32)p->scanCompCount; idx++) { u8 compId; @@ -1929,7 +1929,7 @@ static s32 TMCJPEGDEC_parse_sof(TMCCJPEGDecWork* work) { mcuCountY += yr; frameInfo->mcuYCount = mcuCountX; frameInfo->mcuXCount2 = mcuCountY; - work->unk_0x1804 = (u32)mcuCountX * (u32)mcuCountY; + work->mcuTotal = (u32)mcuCountX * (u32)mcuCountY; } compCount2 = frameInfo->compCount; -- 2.49.1 From 09de907f0b48a1fa72d15d2892231b072d62958b Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 14:04:17 -0500 Subject: [PATCH 3/6] cleanup(eZiText): rename work unk_0x141F to maxCnt (#860) Tracks max context->cnt during DAWG match in Matching zi8dawg. --- libs/RVLMiddleware/eZiText/include/zi8clib/zitypes.h | 2 +- libs/RVLMiddleware/eZiText/src/clib/zi8dawg.c | 8 ++++---- 2 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 c1183293..33546c24 100644 --- a/libs/RVLMiddleware/eZiText/include/zi8clib/zitypes.h +++ b/libs/RVLMiddleware/eZiText/include/zi8clib/zitypes.h @@ -273,7 +273,7 @@ struct __zi8_work_data_s { ziU8 unk_0x141C; ziU8 unk_0x141D; ziU8 unk_0x141E; - ziU8 unk_0x141F; + ziU8 maxCnt; // 0x141F ziU8 unk_0x1420[4]; zi8DawgCtx dawgCtx; // 0x1424 ziU8 unk_0x1760[4]; // 0x1760 diff --git a/libs/RVLMiddleware/eZiText/src/clib/zi8dawg.c b/libs/RVLMiddleware/eZiText/src/clib/zi8dawg.c index 7241ef16..71a0c81c 100644 --- a/libs/RVLMiddleware/eZiText/src/clib/zi8dawg.c +++ b/libs/RVLMiddleware/eZiText/src/clib/zi8dawg.c @@ -136,7 +136,7 @@ descend: records[context->cnt].node = ZiDAWGGetChild(records[context->cnt - 1].node); if (records[context->cnt].node == (ziU8*)0) goto next_sibling; context->cnt++; - if (ZI_WORK->unk_0x141F < context->cnt) ZI_WORK->unk_0x141F = context->cnt; + if (ZI_WORK->maxCnt < context->cnt) ZI_WORK->maxCnt = context->cnt; goto update_current; next_sibling: while (context->cnt != 0) { @@ -238,7 +238,7 @@ unsigned int Zi8MatchROMdata2(ziWChar* elements, ziU8 count, ziU8 language, } } search_segment: - ZI_WORK->unk_0x141F = 1; + ZI_WORK->maxCnt = 1; result = Zi8MatchROMdata1(elements + ZI_WORK->unk_0x17EA, count - ZI_WORK->unk_0x17EA, language, &ZI_WORK->unk_0x17F4[ZI_WORK->unk_0x17EA], capacity, @@ -262,8 +262,8 @@ search_segment: if (elements[index] == 0xeff1) goto finish_segments; } } - if (ZI_WORK->unk_0x141F > capacity) goto finish_segments; - for (index = ZI_WORK->unk_0x141F; index != 0; index--) { + if (ZI_WORK->maxCnt > capacity) goto finish_segments; + for (index = ZI_WORK->maxCnt; index != 0; index--) { result = Zi8MatchROMdata1(elements + ZI_WORK->unk_0x17EA, index, language, &ZI_WORK->unk_0x17F4[ZI_WORK->unk_0x17EA], capacity, 1, 0, ZI_WORK->unk_0x1768, (char*)group, -- 2.49.1 From 263411ccacd7eb27a593861da32a265004e9bf07 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 14:04:43 -0500 Subject: [PATCH 4/6] cleanup(iplContest): name session NAT/HTTP unk fields (#861) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rename clear Contest session placeholders from usage: - unk_0x030 → natState (GameSpy/NAT detect state machine) - unk_0x034 → gsAvailable - unk_0x038 → natTimedOut - unk_0x03c → natFailed - unk_0x7f0 → httpBuf (NHTTP response buffer) Verified: iplContest 100%/100%, build/43U/ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d --- src/scene/nakamuraTest/iplContest.c | 64 ++++++++++++++--------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/src/scene/nakamuraTest/iplContest.c b/src/scene/nakamuraTest/iplContest.c index 3759f411..f4e86863 100644 --- a/src/scene/nakamuraTest/iplContest.c +++ b/src/scene/nakamuraTest/iplContest.c @@ -25,16 +25,16 @@ typedef struct { undefined4 result; undefined4 errCode; HTTPTestState httpTestState; - undefined4 unk_0x030; - undefined4 unk_0x034; - undefined4 unk_0x038; - undefined4 unk_0x03c; + undefined4 natState; + undefined4 gsAvailable; + undefined4 natTimedOut; + undefined4 natFailed; OSTime detectStartTime; NHTTPConnection httpConnection; NHTTPRequest* httpRequest; NHTTPResponse* httpResponse; NCDProxyProfile proxy; - void* unk_0x7f0; + void* httpBuf; NAT nat; } StaticSession; @@ -64,14 +64,14 @@ void IPLContestInitialize(void* heapBuf, NCDProxyProfile* proxy) { g_session.result = 0xFF00; g_session.errCode = 0; g_session.httpTestState = HTTP_TEST_NOT_STARTED; - g_session.unk_0x030 = 0; + g_session.natState = 0; g_session.detectStartTime = 0; g_session.httpConnection = 0; g_session.httpRequest = 0; g_session.httpResponse = NULL; - g_session.unk_0x034 = 0; - g_session.unk_0x038 = 0; - g_session.unk_0x03c = 1; + g_session.gsAvailable = 0; + g_session.natTimedOut = 0; + g_session.natFailed = 1; g_session.proxy = *proxy; } @@ -100,7 +100,7 @@ int IPLContestProcess() { g_session.errCode = g_session.errCode != 0 ? g_session.errCode : -52200; OSReport("[error] Failed to start up NHTTP.\n"); } else { - g_session.unk_0x7f0 = IPLContestAlloc(0x400); + g_session.httpBuf = IPLContestAlloc(0x400); g_session.httpTestState = HTTP_TEST_STARTED; OSReport("Starting HTTP conectting test.\n"); } @@ -108,7 +108,7 @@ int IPLContestProcess() { } case HTTP_TEST_STARTED: { g_session.httpRequest = - NHTTPCreateRequest("http://conntest.nintendowifi.net/", 0, g_session.unk_0x7f0, 0x400, sNHTTPReqCallback, 0); + NHTTPCreateRequest("http://conntest.nintendowifi.net/", 0, g_session.httpBuf, 0x400, sNHTTPReqCallback, 0); if (g_session.httpRequest == 0) { g_session.httpTestState = HTTP_TEST_RESPONSE_ERRORED; g_session.result |= 4; @@ -156,9 +156,9 @@ int IPLContestProcess() { NHTTPDestroyResponse(g_session.httpResponse); g_session.httpResponse = NULL; } - if (g_session.unk_0x7f0 != NULL) { - IPLContestFree(g_session.unk_0x7f0, 0); - g_session.unk_0x7f0 = NULL; + if (g_session.httpBuf != NULL) { + IPLContestFree(g_session.httpBuf, 0); + g_session.httpBuf = NULL; } g_session.httpTestState = HTTP_TEST_DONE; NHTTPCleanupAsync(sNHTTPCleanupCallback); @@ -176,9 +176,9 @@ int IPLContestProcess() { NHTTPDestroyResponse(g_session.httpResponse); g_session.httpResponse = NULL; } - if (g_session.unk_0x7f0 != NULL) { - IPLContestFree(g_session.unk_0x7f0, 0); - g_session.unk_0x7f0 = NULL; + if (g_session.httpBuf != NULL) { + IPLContestFree(g_session.httpBuf, 0); + g_session.httpBuf = NULL; } g_session.httpTestState = HTTP_TEST_DONE; NHTTPCleanupAsync(sNHTTPCleanupCallback); @@ -198,11 +198,11 @@ int IPLContestProcess() { OSReport("Port mapping detectioning test has been skipped.\n"); } else - switch (g_session.unk_0x030) { + switch (g_session.natState) { case 0: { gsiMemoryCallbacksSet(IPLContestGSMalloc, IPLContestGSFree, IPLContestGSRealloc, IPLContestGSMemalign); GSIStartAvailableCheckA("wiinat"); - g_session.unk_0x030 = 1; + g_session.natState = 1; OSReport("Starting GameSpy available check.\n"); break; } @@ -212,14 +212,14 @@ int IPLContestProcess() { break; } case GSIACAvailable: { - g_session.unk_0x034 = 1; - g_session.unk_0x030 = 2; + g_session.gsAvailable = 1; + g_session.natState = 2; OSReport("GameSpy server is currently available.\n"); break; } default: { - g_session.unk_0x034 = 0; - g_session.unk_0x030 = 5; + g_session.gsAvailable = 0; + g_session.natState = 5; OSReport("GameSpy server is currently unavailable.\n"); break; } @@ -228,7 +228,7 @@ int IPLContestProcess() { } case 2: { NNStartNatDetection(onNatDetectionDone); - g_session.unk_0x030 = 3; + g_session.natState = 3; OSReport("Port mapping detectioning test has been started.\n"); g_session.detectStartTime = OSGetTime(); break; @@ -238,8 +238,8 @@ int IPLContestProcess() { if (OSGetTime() - g_session.detectStartTime < OSMillisecondsToTicks((OSTime)90000)) { break; } - g_session.unk_0x030 = 5; - g_session.unk_0x038 = 1; + g_session.natState = 5; + g_session.natTimedOut = 1; OSReport("[error] NAT timeout.\n"); break; } @@ -289,10 +289,10 @@ int IPLGetNATSupportCode(int conntype) { nat = g_session.nat; - if (g_session.unk_0x034 != 0) { - if (g_session.unk_0x038 != 0) { + if (g_session.gsAvailable != 0) { + if (g_session.natTimedOut != 0) { code = 11180; - } else if (g_session.unk_0x03c != 0) { + } else if (g_session.natFailed != 0) { code = 11170; } else { if (nat.mappingScheme == 0 && nat.mappings[2].publicPort == nat.mappings[1].publicPort * 2 - nat.mappings[0].publicPort) { @@ -464,10 +464,10 @@ void sNHTTPCleanupCallback() { void onNatDetectionDone(gsi_bool success, NAT nat) { if (success) { g_session.nat = nat; - g_session.unk_0x03c = 0; + g_session.natFailed = 0; } else { - g_session.unk_0x03c = 1; + g_session.natFailed = 1; } - g_session.unk_0x030 = 4; + g_session.natState = 4; return; } -- 2.49.1 From 7851b2b29f97713ef4e18ac35c54d6d8f03708b7 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 14:05:10 -0500 Subject: [PATCH 5/6] cleanup(NWC24MsgObj): rename unk_0x10 to flags (#862) Copied to/from mailbox entry->flags in NWC24MBoxCtrl. --- libs/RevoEX/include/private/nwc24/NWC24MsgObj.h | 2 +- libs/RevoEX/src/nwc24/NWC24MBoxCtrl.c | 6 +++--- libs/RevoEX/src/nwc24/NWC24MsgCommit.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libs/RevoEX/include/private/nwc24/NWC24MsgObj.h b/libs/RevoEX/include/private/nwc24/NWC24MsgObj.h index 9d2c13ec..479fe53d 100644 --- a/libs/RevoEX/include/private/nwc24/NWC24MsgObj.h +++ b/libs/RevoEX/include/private/nwc24/NWC24MsgObj.h @@ -24,7 +24,7 @@ typedef struct NWC24MsgObjPrivate { #ifdef NWC24_MSG_READ u32 headerSize; #elif defined(NWC24_MBOX_CTRL) || defined(NWC24_MSG_COMMIT) - u32 unk_0x10; + u32 flags; // 0x10 #else u8 unk_0x10[0x4]; #endif diff --git a/libs/RevoEX/src/nwc24/NWC24MBoxCtrl.c b/libs/RevoEX/src/nwc24/NWC24MBoxCtrl.c index 8d58ad90..5567991d 100644 --- a/libs/RevoEX/src/nwc24/NWC24MBoxCtrl.c +++ b/libs/RevoEX/src/nwc24/NWC24MBoxCtrl.c @@ -783,7 +783,7 @@ static NWC24Err DuplicationCheck(MBCHeader* header, const NWC24MsgObjPrivate* ms continue; } if (msg->unk_0x1C != 0 && entry->crc == msg->unk_0x1C && entry->type == msg->type && entry->length == msg->length && - entry->flags == msg->unk_0x10 && (s32)entry->date == (s32)msg->date) { + entry->flags == msg->flags && (s32)entry->date == (s32)msg->date) { duplicateId = entry->msgId; duplicateOffset = offset; continue; @@ -956,7 +956,7 @@ static NWC24Err CopyMsgObjToMBCFmt(const NWC24MsgObjPrivate* msg, MBCEntry* entr entry->type = msg->type; entry->length = msg->length; entry->appId = msg->appId; - entry->flags = msg->unk_0x10; + entry->flags = msg->flags; entry->tag = msg->tag; entry->ledPattern = msg->ledPattern; entry->crc = msg->unk_0x1C; @@ -1003,7 +1003,7 @@ static NWC24Err CopyMsgObjToPrvFmt(const MBCEntry* entry, NWC24MsgObjPrivate* ms msg->type = entry->type; msg->length = entry->length; msg->appId = entry->appId; - msg->unk_0x10 = entry->flags; + msg->flags = entry->flags; msg->tag = entry->tag; msg->ledPattern = entry->ledPattern; msg->unk_0x1C = entry->crc; diff --git a/libs/RevoEX/src/nwc24/NWC24MsgCommit.c b/libs/RevoEX/src/nwc24/NWC24MsgCommit.c index 2c3edb21..739feeb6 100644 --- a/libs/RevoEX/src/nwc24/NWC24MsgCommit.c +++ b/libs/RevoEX/src/nwc24/NWC24MsgCommit.c @@ -330,7 +330,7 @@ static NWC24Err NWC24CommitMsgInternal(NWC24MsgObjPrivate* msg, NWC24MBoxType ty } CHECK_WRITE(WriteString(msg, buffer)); if (msg->type & 0x10000) { - msg->unk_0x10 = msg->length; + msg->flags = msg->length; buffer = NWC24WorkP->stringWork; Mail_memset(buffer, 0, 1024); Mail_sprintf(buffer, "\r\n--%s", MultiPartDivider); @@ -339,7 +339,7 @@ static NWC24Err NWC24CommitMsgInternal(NWC24MsgObjPrivate* msg, NWC24MBoxType ty } CHECK_WRITE(WriteContentTypeField(msg)); if (!(msg->type & 0x10000)) - msg->unk_0x10 = msg->length; + msg->flags = msg->length; text.ptr = (const void*)msg->length; { NWC24Err textResult = WritePlainText(msg); err = textResult == NWC24_ERR_NULL ? NWC24_OK : textResult; } -- 2.49.1 From 928026a802c919b6b954fd01769b98668cffbb79 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 14:06:29 -0500 Subject: [PATCH 6/6] cleanup(ErrorHandler): name set() arg storage fields MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rename unused debug-ish stash fields to match ErrorHandler::set params: - unk_0x14 → mArg1 (char[4] from arg1) - unk_0x0C → mArg2 - unk_0x10 → mArg3 Verified: ErrorHandler 100%/100%, build/43U/ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d --- include/system/iplErrorHandler.h | 6 +++--- src/system/iplErrorHandler.cpp | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/system/iplErrorHandler.h b/include/system/iplErrorHandler.h index e8f48be1..a72d82cb 100644 --- a/include/system/iplErrorHandler.h +++ b/include/system/iplErrorHandler.h @@ -60,9 +60,9 @@ namespace ipl { int mMessageID; // 0x08 - int unk_0x0C; - int unk_0x10; - char unk_0x14[4]; + int mArg2; + int mArg3; + char mArg1[4]; u8* mpArcData; // 0x18 u32 mArcSize; // 0x1C diff --git a/src/system/iplErrorHandler.cpp b/src/system/iplErrorHandler.cpp index 3bc5533f..01922287 100644 --- a/src/system/iplErrorHandler.cpp +++ b/src/system/iplErrorHandler.cpp @@ -43,13 +43,13 @@ namespace ipl { mMessageID = msgId; // Debug related? (seems to be incomplete; unused) - unk_0x0C = arg2; - unk_0x10 = arg3; + mArg2 = arg2; + mArg3 = arg3; if (arg1) { - strncpy(unk_0x14, arg1, sizeof(unk_0x14)); - unk_0x14[sizeof(unk_0x14) - 1] = 0; + strncpy(mArg1, arg1, sizeof(mArg1)); + mArg1[sizeof(mArg1) - 1] = 0; } else { - memset(unk_0x14, 0, sizeof(unk_0x14)); + memset(mArg1, 0, sizeof(mArg1)); } curThread = OSGetCurrentThread(); -- 2.49.1