From fdde0ffe602478f6c3405f952c6558c9d40a6d30 Mon Sep 17 00:00:00 2001
From: RD42 <42702181+dashr9230@users.noreply.github.com>
Date: Tue, 2 Apr 2024 22:20:14 +0800
Subject: [PATCH] [saco] Implement CUnkClass12 constructor
---
saco/main.cpp | 2 ++
saco/main.h | 1 +
saco/saco.vcproj | 6 ++++++
saco/unkclass12.cpp | 2 ++
saco/unkclass12.h | 18 ++++++++++++++++++
5 files changed, 29 insertions(+)
create mode 100644 saco/unkclass12.cpp
create mode 100644 saco/unkclass12.h
diff --git a/saco/main.cpp b/saco/main.cpp
index e42782d..c5b6200 100644
--- a/saco/main.cpp
+++ b/saco/main.cpp
@@ -40,6 +40,7 @@ CUnkClass5 *pUnkClass5=NULL;
CUnkClass9 *pUnkClass9=NULL;
CUnkClass10 *pUnkClass10=NULL;
CUnkClass11 *pUnkClass11=NULL;
+CUnkClass12 *pUnkClass12=NULL;
CUnkClass6 *pUnkClass6=NULL;
CSvrNetStats *pSvrNetStats=NULL;
CUnkClass7 *pUnkClass7=NULL;
@@ -362,6 +363,7 @@ void DoInitStuff()
pUnkClass9 = new CUnkClass9(pD3DDevice);
pUnkClass10 = new CUnkClass10(pD3DDevice);
pUnkClass11 = new CUnkClass11();
+ pUnkClass12 = new CUnkClass12();
// TODO: DoInitStuff
diff --git a/saco/main.h b/saco/main.h
index 57aa1df..e036ec1 100644
--- a/saco/main.h
+++ b/saco/main.h
@@ -73,6 +73,7 @@ typedef struct _GAME_SETTINGS {
#include "unkclass9.h"
#include "unkclass10.h"
#include "unkclass11.h"
+#include "unkclass12.h"
void SetStringFromCommandLine(char *szCmdLine, char *szString);
void SetStringFromQuotedCommandLine(char *szCmdLine, char *szString);
diff --git a/saco/saco.vcproj b/saco/saco.vcproj
index da87a04..21f027e 100644
--- a/saco/saco.vcproj
+++ b/saco/saco.vcproj
@@ -567,6 +567,12 @@
+
+
+
+
diff --git a/saco/unkclass12.cpp b/saco/unkclass12.cpp
new file mode 100644
index 0000000..7a7a289
--- /dev/null
+++ b/saco/unkclass12.cpp
@@ -0,0 +1,2 @@
+
+#include "main.h"
diff --git a/saco/unkclass12.h b/saco/unkclass12.h
new file mode 100644
index 0000000..b945c4c
--- /dev/null
+++ b/saco/unkclass12.h
@@ -0,0 +1,18 @@
+
+#pragma once
+
+class CUnkClass12
+{
+private:
+ int field_0;
+ int field_4;
+ short field_8;
+
+public:
+ CUnkClass12() {
+ field_0 = 0;
+ field_8 = -1;
+ field_4 = -1;
+ }
+
+};