From 5a300e8b8945f038c3328799e61d515666e50990 Mon Sep 17 00:00:00 2001 From: Joshua Peisach Date: Fri, 25 Aug 2023 21:42:35 -0400 Subject: [PATCH] MxDirect3D Constructor --- CMakeLists.txt | 1 + LEGO1/mxdirect3d.cpp | 12 ++++++++++++ LEGO1/mxdirect3d.h | 2 ++ 3 files changed, 15 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2034c28a..ea7809cc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -103,6 +103,7 @@ add_library(lego1 SHARED LEGO1/mxcore.cpp LEGO1/mxcriticalsection.cpp LEGO1/mxdirectdraw.cpp + LEGO1/mxdirect3d.cpp LEGO1/mxdiskstreamcontroller.cpp LEGO1/mxdiskstreamprovider.cpp LEGO1/mxdisplaysurface.cpp diff --git a/LEGO1/mxdirect3d.cpp b/LEGO1/mxdirect3d.cpp index e69de29b..a4a6db89 100644 --- a/LEGO1/mxdirect3d.cpp +++ b/LEGO1/mxdirect3d.cpp @@ -0,0 +1,12 @@ +#include "mxdirect3d.h" + +DECOMP_SIZE_ASSERT(MxDirect3D, 0x894); + +// OFFSET: LEGO1 0x1009b0a0 +MxDirect3D::MxDirect3D() +{ + this->m_pDirect3d = NULL; + this->m_pDirect3dDevice = NULL; + this->m_unk88c = NULL; + this->m_pDeviceModeFinder = NULL; +} \ No newline at end of file diff --git a/LEGO1/mxdirect3d.h b/LEGO1/mxdirect3d.h index ecc1f0aa..74e485e4 100644 --- a/LEGO1/mxdirect3d.h +++ b/LEGO1/mxdirect3d.h @@ -12,6 +12,8 @@ class MxDeviceModeFinder; class MxDirect3D : public MxDirectDraw { public: + MxDirect3D(); + inline MxDeviceModeFinder *GetDeviceModeFinder() { return this->m_pDeviceModeFinder; }; private: