From be63c555e06c2dc270ccbd40812852631db6d676 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 14:01:31 -0500 Subject: [PATCH] cleanup(NWC24MsgObj): rename unk_0x10 to flags 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