From 643c4630687bc974915c5ff4bd5bf5b9ded43862 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Mon, 21 Sep 2026 22:25:42 +0000 Subject: [PATCH 1/2] Improve ChanAppEdit interpolation match --- src/scene/channelEdit/iplChanAppEdit.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/scene/channelEdit/iplChanAppEdit.cpp b/src/scene/channelEdit/iplChanAppEdit.cpp index d3b8aaaa..3a37b72e 100644 --- a/src/scene/channelEdit/iplChanAppEdit.cpp +++ b/src/scene/channelEdit/iplChanAppEdit.cpp @@ -6,6 +6,15 @@ #include "sound/iplSound.h" namespace ipl { + namespace math { + template <> + VEC3 LinearIntp::get() const { + VEC3 r = mEnd * getCurrentFrame(); + r += mStart * (mMaxFrame - mFrame); + return r * (f64)(1.0f / getMaxFrame()); + } + } + namespace scene { const f32 offsets[2][2] = { {64.f, 48.f}, -- 2.49.1 From 676712c9e4f44bec1b59c3080d97b4afb7e3bc0a Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Mon, 21 Sep 2026 22:26:40 +0000 Subject: [PATCH 2/2] Improve LetterWriter sendToPC matching --- src/scene/letterWriter/iplLetterWriter.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/scene/letterWriter/iplLetterWriter.cpp b/src/scene/letterWriter/iplLetterWriter.cpp index d58f574d..5a855ed1 100644 --- a/src/scene/letterWriter/iplLetterWriter.cpp +++ b/src/scene/letterWriter/iplLetterWriter.cpp @@ -557,32 +557,33 @@ namespace ipl { int LetterWriter::sendToPC(NWC24UserId userId, const wchar_t* wcString) { NWC24MsgObj msgObj; + const char* report = lbl_816503CE + 0x4E; // Create message object if (!System::getNwc24Manager()->initMsgObj(&msgObj, NWC24_MSGTYPE_PUBLIC)) { - OSReport(lbl_816503CE + 0xA); + OSReport(report + 0xA); return SEND_ERR_NWC24; } // Set message to ID (in this case, my user ID) if (!System::getNwc24Manager()->setMsgToAddr(&msgObj, mFriendInfo.addr.mailAddr, strlen(mFriendInfo.addr.mailAddr))) { - OSReport(lbl_816503CE + 0xD4); + OSReport(report + 0xD4); return SEND_ERR_NWC24; } - OSReport(lbl_816503CE + 0xEB, mFriendInfo.addr.mailAddr); + OSReport(report + 0xEB, mFriendInfo.addr.mailAddr); // Set letter contents const wchar_t* subject = System::getMessage(MESG_LETTERWRITER_EMAIL_SUBJECT); if (!System::getNwc24Manager()->setMsgSubjectAndTextPublic(&msgObj, (u16*)subject, wcslen(subject), (u16*)wcString, wcslen(wcString), mpTextSubjectWork, mTextSubjectWorkSize)) { - OSReport(lbl_816503CE + 0x107); + OSReport(report + 0x107); return SEND_ERR_NWC24; } // Send! if (!System::getNwc24Manager()->commitMsg(&msgObj)) { - OSReport(lbl_816503CE + 0xC0); + OSReport(report + 0xC0); return SEND_ERR_NWC24; } -- 2.49.1