From a4ae2c88dfab47446a05278503a67d4e8cc02934 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Thu, 28 Mar 2024 23:25:57 +0800 Subject: [PATCH] [saco] Implement CUnkClass8 constructor --- saco/main.cpp | 2 ++ saco/main.h | 1 + saco/saco.vcproj | 6 ++++++ saco/unkclass8.cpp | 7 +++++++ saco/unkclass8.h | 17 +++++++++++++++++ 5 files changed, 33 insertions(+) create mode 100644 saco/unkclass8.cpp create mode 100644 saco/unkclass8.h diff --git a/saco/main.cpp b/saco/main.cpp index 9d4eefd..655ec5d 100644 --- a/saco/main.cpp +++ b/saco/main.cpp @@ -40,6 +40,7 @@ CUnkClass5 *pUnkClass5=NULL; CUnkClass6 *pUnkClass6=NULL; CSvrNetStats *pSvrNetStats=NULL; CUnkClass7 *pUnkClass7=NULL; +CUnkClass8 *pUnkClass8=NULL; bool bShowDebugLabels = false; @@ -352,6 +353,7 @@ void DoInitStuff() pUnkClass6 = new CUnkClass6(pD3DDevice); pSvrNetStats = new CSvrNetStats(pD3DDevice); pUnkClass7 = new CUnkClass7(pD3DDevice); + pUnkClass8 = new CUnkClass8(); } diff --git a/saco/main.h b/saco/main.h index 9da6f40..f35bf5f 100644 --- a/saco/main.h +++ b/saco/main.h @@ -69,6 +69,7 @@ typedef struct _GAME_SETTINGS { #include "unkclass5.h" #include "unkclass6.h" #include "unkclass7.h" +#include "unkclass8.h" void SetStringFromCommandLine(char *szCmdLine, char *szString); void SetStringFromQuotedCommandLine(char *szCmdLine, char *szString); diff --git a/saco/saco.vcproj b/saco/saco.vcproj index 00b1e0f..13b97ea 100644 --- a/saco/saco.vcproj +++ b/saco/saco.vcproj @@ -591,6 +591,12 @@ + + + + diff --git a/saco/unkclass8.cpp b/saco/unkclass8.cpp new file mode 100644 index 0000000..62bb36d --- /dev/null +++ b/saco/unkclass8.cpp @@ -0,0 +1,7 @@ + +#include "main.h" + +CUnkClass8::CUnkClass8() +{ + memset(field_0, 0, sizeof(struc_157) * MAX_PLAYERS); +} diff --git a/saco/unkclass8.h b/saco/unkclass8.h new file mode 100644 index 0000000..68272ed --- /dev/null +++ b/saco/unkclass8.h @@ -0,0 +1,17 @@ + +#pragma once + +struct struc_157 +{ + char _gap0[280]; +}; + +class CUnkClass8 +{ +private: + struc_157 field_0[MAX_PLAYERS]; + +public: + CUnkClass8(); + +};