From 1bd1bcd99b97ba9d2ac8fb76173cf45e169d0d44 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 14:12:24 -0500 Subject: [PATCH] cleanup(WPAD): rename CB unk_0x38 to gameInfoStatus Stores WPAD_ERR_* from getGameInfo checksum validation. --- libs/RVL_SDK/include/private/wpad/WPADInternal.h | 2 +- libs/RVL_SDK/src/wpad/WPAD.c | 4 ++-- libs/RVL_SDK/src/wpad/WPADHIDParser.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/RVL_SDK/include/private/wpad/WPADInternal.h b/libs/RVL_SDK/include/private/wpad/WPADInternal.h index 81a979a4..266f103d 100644 --- a/libs/RVL_SDK/include/private/wpad/WPADInternal.h +++ b/libs/RVL_SDK/include/private/wpad/WPADInternal.h @@ -171,7 +171,7 @@ typedef struct WPADExtConfig { typedef struct WPADCB { WPADGameInfo gameInfo; // 0x00 - s32 unk_0x38[2]; + s32 gameInfoStatus[2]; // 0x38 u8 rxBufMain[RX_BUFFER_SIZE]; // 0x40 u8 rxBufs[2][RX_BUFFER_SIZE]; // 0xA0 WPADCommandQueue stdCmdQueue; // 0x160 diff --git a/libs/RVL_SDK/src/wpad/WPAD.c b/libs/RVL_SDK/src/wpad/WPAD.c index c06a14f2..dc1c3c3c 100644 --- a/libs/RVL_SDK/src/wpad/WPAD.c +++ b/libs/RVL_SDK/src/wpad/WPAD.c @@ -1298,8 +1298,8 @@ static void __ClearControlBlock(s32 chan) { memset(&p->decryptXorTable, 0, sizeof(p->decryptXorTable)); memset(&p->gameInfo, 0, sizeof(WPADGameInfo)); - p->unk_0x38[0] = -1; - p->unk_0x38[1] = -1; + p->gameInfoStatus[0] = -1; + p->gameInfoStatus[1] = -1; p->stdCmdQueue.buffer = p->stdCmdQueueList; p->stdCmdQueue.capacity = ARRAY_LENGTH(p->stdCmdQueueList); diff --git a/libs/RVL_SDK/src/wpad/WPADHIDParser.c b/libs/RVL_SDK/src/wpad/WPADHIDParser.c index cb2235f9..cea48c48 100644 --- a/libs/RVL_SDK/src/wpad/WPADHIDParser.c +++ b/libs/RVL_SDK/src/wpad/WPADHIDParser.c @@ -547,9 +547,9 @@ static void getGameInfo(s32 chan, s32 result, u8 index) { if (p_info->checksum == sum) { memcpy(&p_wpd->gameInfo, p_buf, sizeof(WPADMEMGameInfo)); - p_wpd->unk_0x38[index] = WPAD_ERR_NONE; + p_wpd->gameInfoStatus[index] = WPAD_ERR_NONE; } else { - p_wpd->unk_0x38[index] = WPAD_ERR_INVALID; + p_wpd->gameInfoStatus[index] = WPAD_ERR_INVALID; } } } -- 2.49.1