From f7e1acbdb04da30db7d45827d29b315a8f5bd796 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Mon, 21 Sep 2026 17:33:05 +0000 Subject: [PATCH] Match PlayTimeLog record creation --- src/system/iplPlayTimeLog.cpp | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/system/iplPlayTimeLog.cpp b/src/system/iplPlayTimeLog.cpp index 8f708e5a..0d36680c 100644 --- a/src/system/iplPlayTimeLog.cpp +++ b/src/system/iplPlayTimeLog.cpp @@ -7,10 +7,10 @@ namespace ipl { static const wchar_t scNumber[] = L"0123456789"; - extern const u32 scCreateRecordAttachSize0 = sizeof(EventBuffer); - extern const u32 scCreateRecordAttachSize1 = 0; - extern const RBRAttachmentType scCreateRecordAttachType0 = RBRAttachmentType_PlayTimeLog; - extern const RBRAttachmentType scCreateRecordAttachType1 = RBRAttachmentType_None; + extern const u32 sPlayTimeLogAttachSize0 = sizeof(EventBuffer); + extern const u32 sPlayTimeLogAttachSize1 = 0; + extern const RBRAttachmentType sPlayTimeLogAttachType0 = RBRAttachmentType_PlayTimeLog; + extern const RBRAttachmentType sPlayTimeLogAttachType1 = RBRAttachmentType_None; PlayTimeLog PlayTimeLog::smArg; BOOL search_cb_(void* playTime, CDBRecord* record) { @@ -351,11 +351,15 @@ namespace ipl { const void* attachData[RBR_ATTACHMENT_MAX] = {(void*)event, NULL}; - u32 attachSize[RBR_ATTACHMENT_MAX] = {*reinterpret_cast(&scCreateRecordAttachSize0), - *reinterpret_cast(&scCreateRecordAttachSize1)}; + u32 attachSize[RBR_ATTACHMENT_MAX] = { + *reinterpret_cast(&sPlayTimeLogAttachSize0), + *reinterpret_cast(&sPlayTimeLogAttachSize1) + }; + RBRAttachmentType attachType[RBR_ATTACHMENT_MAX] = { - *reinterpret_cast(&scCreateRecordAttachType0), - *reinterpret_cast(&scCreateRecordAttachType1)}; + *reinterpret_cast(&sPlayTimeLogAttachType0), + *reinterpret_cast(&sPlayTimeLogAttachType1) + }; NWC24FriendAddr friendAddr; memset(&friendAddr, 0, sizeof(NWC24FriendAddr)); -- 2.49.1