From 711238c93460589581f8c4747cf93bc2d499b49a Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 14:15:45 -0500 Subject: [PATCH] cleanup(NWC24FriendList): rename FLHeader unk_0x10 to confirmedBits Per-friend bitfield; GetUnkFlag==1 sets NWC24_FRIENDSTATUS_CONFIRMED. --- libs/RevoEX/include/private/nwc24/NWC24FriendList.h | 2 +- libs/RevoEX/src/nwc24/NWC24FriendList.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libs/RevoEX/include/private/nwc24/NWC24FriendList.h b/libs/RevoEX/include/private/nwc24/NWC24FriendList.h index de6c9d86..5e8137b4 100644 --- a/libs/RevoEX/include/private/nwc24/NWC24FriendList.h +++ b/libs/RevoEX/include/private/nwc24/NWC24FriendList.h @@ -17,7 +17,7 @@ typedef struct NWC24FLHeader { u32 version; // 0x04 u32 infoCount; // 0x08 u32 registeredCount; // 0x0C - u32 unk_0x10[4]; + u32 confirmedBits[4]; // 0x10 u32 unk_0x20[7]; u32 unk_0x3C; NWC24UserId friendIds[NWC24_FRIEND_INFO_MAX]; // 0x40 diff --git a/libs/RevoEX/src/nwc24/NWC24FriendList.c b/libs/RevoEX/src/nwc24/NWC24FriendList.c index 3dfa5c42..43ec2d36 100644 --- a/libs/RevoEX/src/nwc24/NWC24FriendList.c +++ b/libs/RevoEX/src/nwc24/NWC24FriendList.c @@ -37,7 +37,7 @@ static u32 GetUnkFlag(u32 index) { return result; } - data = header->unk_0x10[index >> 5] >> (index & 0x1f) & 1; + data = header->confirmedBits[index >> 5] >> (index & 0x1f) & 1; return (NWC24Err)data; } @@ -50,7 +50,7 @@ static NWC24Err SetUnkFlag(u32 index, int flag) { return result; } - header->unk_0x10[index >> 5] = ~(1 << (index & 0x1f)) & header->unk_0x10[index >> 5] | flag << (index & 0x1f); + header->confirmedBits[index >> 5] = ~(1 << (index & 0x1f)) & header->confirmedBits[index >> 5] | flag << (index & 0x1f); return NWC24_OK; } @@ -629,10 +629,10 @@ NWC24Err NWC24iCreateFriendList() { header->version = FRIEND_LIST_VERSION; header->infoCount = NWC24_FRIEND_INFO_MAX; header->registeredCount = 0; - header->unk_0x10[0] = 0; - header->unk_0x10[1] = 0; - header->unk_0x10[2] = 0; - header->unk_0x10[3] = 0; + header->confirmedBits[0] = 0; + header->confirmedBits[1] = 0; + header->confirmedBits[2] = 0; + header->confirmedBits[3] = 0; result = NWC24FOpen(&file, FLFilePath, NWC24_OPEN_WRITE); if (result != NWC24_OK) { -- 2.49.1