mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[saco] Implement CUnkClass1 constructor
This commit is contained in:
parent
665d04b66e
commit
6d646178a4
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
@ -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();
|
||||
|
@ -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
11
saco/unkclass1.cpp
Normal 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
14
saco/unkclass1.h
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
class CUnkClass1
|
||||
{
|
||||
private:
|
||||
IDirect3DDevice9* m_pD3DDevice;
|
||||
int field_4;
|
||||
ID3DXSprite* m_pD3DSprite;
|
||||
|
||||
public:
|
||||
CUnkClass1(IDirect3DDevice9 *pD3DDevice);
|
||||
|
||||
};
|
Loading…
Reference in New Issue
Block a user