diff --git a/saco/main.cpp b/saco/main.cpp index 11ff7dc..9a9b689 100644 --- a/saco/main.cpp +++ b/saco/main.cpp @@ -38,6 +38,7 @@ CUnkClass3 *pUnkClass3=NULL; CUnkClass4 *pUnkClass4=NULL; CUnkClass5 *pUnkClass5=NULL; CUnkClass9 *pUnkClass9=NULL; +CUnkClass10 *pUnkClass10=NULL; CUnkClass6 *pUnkClass6=NULL; CSvrNetStats *pSvrNetStats=NULL; CUnkClass7 *pUnkClass7=NULL; @@ -358,6 +359,7 @@ void DoInitStuff() } pUnkClass9 = new CUnkClass9(pD3DDevice); + pUnkClass10 = new CUnkClass10(pD3DDevice); // TODO: DoInitStuff diff --git a/saco/main.h b/saco/main.h index 39dd228..01c10d0 100644 --- a/saco/main.h +++ b/saco/main.h @@ -71,6 +71,7 @@ typedef struct _GAME_SETTINGS { #include "unkclass7.h" #include "unkclass8.h" #include "unkclass9.h" +#include "unkclass10.h" void SetStringFromCommandLine(char *szCmdLine, char *szString); void SetStringFromQuotedCommandLine(char *szCmdLine, char *szString); diff --git a/saco/saco.vcproj b/saco/saco.vcproj index eca88e7..d1e68e3 100644 --- a/saco/saco.vcproj +++ b/saco/saco.vcproj @@ -555,6 +555,12 @@ + + + + diff --git a/saco/unkclass10.cpp b/saco/unkclass10.cpp new file mode 100644 index 0000000..c80fae2 --- /dev/null +++ b/saco/unkclass10.cpp @@ -0,0 +1,26 @@ + +#include "main.h" + +CUnkClass10::CUnkClass10(IDirect3DDevice9 *pD3DDevice) +{ + m_pD3DDevice = pD3DDevice; + field_7C = 0; + field_113 = -1; + field_80 = 0; + field_84 = 0; + field_78 = 0; + field_A3 = 0; + field_A4 = 0; + field_A5 = 0; + field_A6 = 0; + field_A2 = 0; + field_88 = -1; + field_9E = GetTickCount(); + + D3DXCreateLine(pD3DDevice, &m_pD3DLine); + + D3DXCreateFont(m_pD3DDevice, 22, 0, FW_NORMAL, 1, FALSE, + SYMBOL_CHARSET, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH, "SAMPAUX3", &m_pD3DFont1); + D3DXCreateFont(m_pD3DDevice, 28, 0, FW_NORMAL, 1, FALSE, + SYMBOL_CHARSET, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH, "SAMPAUX3", &m_pD3DFont2); +} diff --git a/saco/unkclass10.h b/saco/unkclass10.h new file mode 100644 index 0000000..c7430e3 --- /dev/null +++ b/saco/unkclass10.h @@ -0,0 +1,30 @@ + +#pragma once + +class CUnkClass10 +{ +private: + char _gap0[120]; + int field_78; + int field_7C; + int field_80; + int field_84; + WORD field_88; + char _gap8A[20]; + DWORD field_9E; + char field_A2; + char field_A3; + char field_A4; + char field_A5; + char field_A6; + char _gapA7[92]; + IDirect3DDevice9 *m_pD3DDevice; + ID3DXLine *m_pD3DLine; + ID3DXFont *m_pD3DFont1; + ID3DXFont *m_pD3DFont2; + int field_113; + +public: + CUnkClass10(IDirect3DDevice9 *pD3DDevice); + +};