From 1c679ea374250bbf204be8751935a6525036ec27 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Wed, 27 Mar 2024 23:29:41 +0800 Subject: [PATCH] [saco] Implement CUnkClass7 constructor --- saco/main.cpp | 2 ++ saco/main.h | 1 + saco/saco.vcproj | 6 ++++++ saco/unkclass7.cpp | 7 +++++++ saco/unkclass7.h | 12 ++++++++++++ 5 files changed, 28 insertions(+) create mode 100644 saco/unkclass7.cpp create mode 100644 saco/unkclass7.h diff --git a/saco/main.cpp b/saco/main.cpp index 4161246..9d4eefd 100644 --- a/saco/main.cpp +++ b/saco/main.cpp @@ -39,6 +39,7 @@ CUnkClass4 *pUnkClass4=NULL; CUnkClass5 *pUnkClass5=NULL; CUnkClass6 *pUnkClass6=NULL; CSvrNetStats *pSvrNetStats=NULL; +CUnkClass7 *pUnkClass7=NULL; bool bShowDebugLabels = false; @@ -350,6 +351,7 @@ void DoInitStuff() pUnkClass5 = new CUnkClass5(pD3DDevice); pUnkClass6 = new CUnkClass6(pD3DDevice); pSvrNetStats = new CSvrNetStats(pD3DDevice); + pUnkClass7 = new CUnkClass7(pD3DDevice); } diff --git a/saco/main.h b/saco/main.h index cd1a7ce..9da6f40 100644 --- a/saco/main.h +++ b/saco/main.h @@ -68,6 +68,7 @@ typedef struct _GAME_SETTINGS { #include "unkclass4.h" #include "unkclass5.h" #include "unkclass6.h" +#include "unkclass7.h" void SetStringFromCommandLine(char *szCmdLine, char *szString); void SetStringFromQuotedCommandLine(char *szCmdLine, char *szString); diff --git a/saco/saco.vcproj b/saco/saco.vcproj index d595aac..00b1e0f 100644 --- a/saco/saco.vcproj +++ b/saco/saco.vcproj @@ -585,6 +585,12 @@ + + + + diff --git a/saco/unkclass7.cpp b/saco/unkclass7.cpp new file mode 100644 index 0000000..d1403db --- /dev/null +++ b/saco/unkclass7.cpp @@ -0,0 +1,7 @@ + +#include "main.h" + +CUnkClass7::CUnkClass7(IDirect3DDevice9 *pD3DDevice) +{ + m_pD3DDevice = pD3DDevice; +} diff --git a/saco/unkclass7.h b/saco/unkclass7.h new file mode 100644 index 0000000..49e2af3 --- /dev/null +++ b/saco/unkclass7.h @@ -0,0 +1,12 @@ + +#pragma once + +class CUnkClass7 +{ +private: + IDirect3DDevice9* m_pD3DDevice; + +public: + CUnkClass7(IDirect3DDevice9 *pD3DDevice); + +};