From 6d646178a425575315d49dc42caac1d54e66fd17 Mon Sep 17 00:00:00 2001
From: RD42 <42702181+dashr9230@users.noreply.github.com>
Date: Mon, 25 Mar 2024 23:01:51 +0800
Subject: [PATCH] [saco] Implement CUnkClass1 constructor
---
saco/main.cpp | 2 ++
saco/main.h | 1 +
saco/saco.vcproj | 10 ++++++++++
saco/unkclass1.cpp | 11 +++++++++++
saco/unkclass1.h | 14 ++++++++++++++
5 files changed, 38 insertions(+)
create mode 100644 saco/unkclass1.cpp
create mode 100644 saco/unkclass1.h
diff --git a/saco/main.cpp b/saco/main.cpp
index 0c7c13b..23fd023 100644
--- a/saco/main.cpp
+++ b/saco/main.cpp
@@ -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);
}
diff --git a/saco/main.h b/saco/main.h
index 5d98fcb..0b591f9 100644
--- a/saco/main.h
+++ b/saco/main.h
@@ -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();
diff --git a/saco/saco.vcproj b/saco/saco.vcproj
index 166a67d..4a2349d 100644
--- a/saco/saco.vcproj
+++ b/saco/saco.vcproj
@@ -546,6 +546,16 @@
+
+
+
+
+
+
diff --git a/saco/unkclass1.cpp b/saco/unkclass1.cpp
new file mode 100644
index 0000000..151b07e
--- /dev/null
+++ b/saco/unkclass1.cpp
@@ -0,0 +1,11 @@
+
+#include "main.h"
+
+CUnkClass1::CUnkClass1(IDirect3DDevice9 *pD3DDevice)
+{
+ m_pD3DDevice = pD3DDevice;
+ field_4 = 0;
+ m_pD3DSprite = NULL;
+
+ D3DXCreateSprite(pD3DDevice, &m_pD3DSprite);
+}
diff --git a/saco/unkclass1.h b/saco/unkclass1.h
new file mode 100644
index 0000000..5da96a5
--- /dev/null
+++ b/saco/unkclass1.h
@@ -0,0 +1,14 @@
+
+#pragma once
+
+class CUnkClass1
+{
+private:
+ IDirect3DDevice9* m_pD3DDevice;
+ int field_4;
+ ID3DXSprite* m_pD3DSprite;
+
+public:
+ CUnkClass1(IDirect3DDevice9 *pD3DDevice);
+
+};