From b9127476dba384f582da4a4072b0c4b706fbdd95 Mon Sep 17 00:00:00 2001 From: Angel Tomkins Date: Tue, 10 Oct 2023 21:00:02 -0400 Subject: [PATCH] Implemented the function wrapper for SetMatrixProduct labeled as SetMatrixProductWrapper with 100% match. --- LEGO1/mxvector.cpp | 5 +++-- LEGO1/mxvector.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/LEGO1/mxvector.cpp b/LEGO1/mxvector.cpp index 9c7c2a07..08dba9dc 100644 --- a/LEGO1/mxvector.cpp +++ b/LEGO1/mxvector.cpp @@ -410,9 +410,10 @@ void MxVector4::EqualsScalar(float *p_value) m_data[3] = *p_value; } -// OFFSET: LEGO1 0x10002ae0 STUB -void MxVector4::unk1(MxVector4 *p_a, float *p_b) +// OFFSET: LEGO1 0x10002ae0 +void MxVector4::SetMatrixProductWrapper(MxVector4 *p_a, float *p_b) { + SetMatrixProduct(p_a->m_data, p_b); } // OFFSET: LEGO1 0x10002a40 diff --git a/LEGO1/mxvector.h b/LEGO1/mxvector.h index eef1d927..df80d6af 100644 --- a/LEGO1/mxvector.h +++ b/LEGO1/mxvector.h @@ -125,7 +125,7 @@ class MxVector4 : public MxVector3 void EqualsScalar(float *p_value); // vtable + 0x84 - virtual void unk1(MxVector4 *p_a, float *p_b); + virtual void SetMatrixProductWrapper(MxVector4 *p_a, float *p_b); virtual void SetMatrixProduct(float *p_vec, float *p_mat); virtual MxResult NormalizeQuaternion(); virtual void UnknownQuaternionOp(MxVector4 *p_a, MxVector4 *p_b);