From 181ff9d5cfe379b0bf95e4ddb320bef51cdde0b7 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Tue, 22 Sep 2026 03:02:14 +0000 Subject: [PATCH 1/3] Link matching iplUtility unit --- configure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.py b/configure.py index 251a622d..eb1e1320 100644 --- a/configure.py +++ b/configure.py @@ -673,7 +673,7 @@ config.libs = [ Object(Matching, "utility/iplFrameController.cpp"), Object(Equivalent, "utility/iplGraphics.cpp"), Object(Matching, "utility/iplCapture.cpp"), - Object(Equivalent, "utility/iplUtility.cpp"), + Object(Matching, "utility/iplUtility.cpp"), Object(Matching, "utility/iplThread.cpp"), Object(Matching, "utility/iplMessageBase.cpp"), Object(Matching, "utility/iplJpegDecoder.cpp"), -- 2.49.1 From 8ab7b71a58e901b4b3bcfb26cc6f6870e7d5f00d Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Tue, 22 Sep 2026 03:27:39 +0000 Subject: [PATCH 2/3] Mark utility constructor shim weak --- src/utility/iplUtility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utility/iplUtility.cpp b/src/utility/iplUtility.cpp index ad710442..fb801b75 100644 --- a/src/utility/iplUtility.cpp +++ b/src/utility/iplUtility.cpp @@ -723,7 +723,7 @@ namespace ipl { } // namespace utility #ifndef NON_MATCHING - math::VEC2 ForceCTORWeak() { + __declspec(weak) math::VEC2 ForceCTORWeak() { return math::VEC2(NULL, NULL); } #endif // NON_MATCHING -- 2.49.1 From 5166ef739ef9545ed6472f850df3279798c32584 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Mon, 21 Sep 2026 22:27:54 -0500 Subject: [PATCH 3/3] Match PlayTimeLog record creation (#76) --- 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