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; } } }