[saco] Implement CUnkClass1 constructor

This commit is contained in:
RD42 2024-03-25 23:01:51 +08:00
parent 665d04b66e
commit 6d646178a4
5 changed files with 38 additions and 0 deletions

View File

@ -32,6 +32,7 @@ IDirect3D9 *pD3D;
IDirect3DDevice9 *pD3DDevice = NULL;
HANDLE hInstance=0;
CUnkClass1 *pUnkClass1=NULL;
bool bShowDebugLabels = false;
@ -336,6 +337,7 @@ void DoInitStuff()
if(tSettings.bPlayOnline) {
pDeathWindow = new CDeathWindow(pD3DDevice);
pSpawnScreen = new CSpawnScreen(pD3DDevice);
pUnkClass1 = new CUnkClass1(pD3DDevice);
}

View File

@ -61,6 +61,7 @@ typedef struct _GAME_SETTINGS {
#include "audiostream.h"
#include "archive/ArchiveFS.h"
#include "unkclass1.h"
void SetStringFromCommandLine(char *szCmdLine, char *szString);
void SetStringFromQuotedCommandLine(char *szCmdLine, char *szString);
void InitSettings();

View File

@ -546,6 +546,16 @@
</File>
</Filter>
</Filter>
<Filter
Name="temp"
Filter="">
<File
RelativePath=".\unkclass1.cpp">
</File>
<File
RelativePath=".\unkclass1.h">
</File>
</Filter>
<File
RelativePath=".\audiostream.cpp">
</File>

11
saco/unkclass1.cpp Normal file
View File

@ -0,0 +1,11 @@
#include "main.h"
CUnkClass1::CUnkClass1(IDirect3DDevice9 *pD3DDevice)
{
m_pD3DDevice = pD3DDevice;
field_4 = 0;
m_pD3DSprite = NULL;
D3DXCreateSprite(pD3DDevice, &m_pD3DSprite);
}

14
saco/unkclass1.h Normal file
View File

@ -0,0 +1,14 @@
#pragma once
class CUnkClass1
{
private:
IDirect3DDevice9* m_pD3DDevice;
int field_4;
ID3DXSprite* m_pD3DSprite;
public:
CUnkClass1(IDirect3DDevice9 *pD3DDevice);
};