[saco] Implement CUnkClass8 constructor

This commit is contained in:
RD42 2024-03-28 23:25:57 +08:00
parent 1297e79a38
commit a4ae2c88df
5 changed files with 33 additions and 0 deletions

View File

@ -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();
}

View File

@ -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);

View File

@ -591,6 +591,12 @@
<File
RelativePath=".\unkclass7.h">
</File>
<File
RelativePath=".\unkclass8.cpp">
</File>
<File
RelativePath=".\unkclass8.h">
</File>
</Filter>
<File
RelativePath=".\audiostream.cpp">

7
saco/unkclass8.cpp Normal file
View File

@ -0,0 +1,7 @@
#include "main.h"
CUnkClass8::CUnkClass8()
{
memset(field_0, 0, sizeof(struc_157) * MAX_PLAYERS);
}

17
saco/unkclass8.h Normal file
View File

@ -0,0 +1,17 @@
#pragma once
struct struc_157
{
char _gap0[280];
};
class CUnkClass8
{
private:
struc_157 field_0[MAX_PLAYERS];
public:
CUnkClass8();
};