From 49a8482549ed6157469b30df7c2965de164215ff Mon Sep 17 00:00:00 2001
From: RD42 <42702181+dashr9230@users.noreply.github.com>
Date: Sun, 21 Apr 2024 20:49:59 +0800
Subject: [PATCH] [saco] Rename CUnkClass9 to CLabel
---
saco/{unkclass9.cpp => label.cpp} | 2 +-
saco/{unkclass9.h => label.h} | 4 ++--
saco/main.cpp | 4 ++--
saco/main.h | 2 +-
saco/saco.vcproj | 12 ++++++------
5 files changed, 12 insertions(+), 12 deletions(-)
rename saco/{unkclass9.cpp => label.cpp} (64%)
rename saco/{unkclass9.h => label.h} (62%)
diff --git a/saco/unkclass9.cpp b/saco/label.cpp
similarity index 64%
rename from saco/unkclass9.cpp
rename to saco/label.cpp
index 99e3ced..7ea2478 100644
--- a/saco/unkclass9.cpp
+++ b/saco/label.cpp
@@ -1,7 +1,7 @@
#include "main.h"
-CUnkClass9::CUnkClass9(IDirect3DDevice9 *pD3DDevice)
+CLabel::CLabel(IDirect3DDevice9 *pD3DDevice)
{
m_pD3DDevice = pD3DDevice;
D3DXCreateSprite(pD3DDevice, &m_pD3DSprite);
diff --git a/saco/unkclass9.h b/saco/label.h
similarity index 62%
rename from saco/unkclass9.h
rename to saco/label.h
index 61844de..aa79d90 100644
--- a/saco/unkclass9.h
+++ b/saco/label.h
@@ -1,13 +1,13 @@
#pragma once
-class CUnkClass9
+class CLabel
{
private:
IDirect3DDevice9 *m_pD3DDevice;
ID3DXSprite *m_pD3DSprite;
public:
- CUnkClass9(IDirect3DDevice9 *pD3DDevice);
+ CLabel(IDirect3DDevice9 *pD3DDevice);
};
diff --git a/saco/main.cpp b/saco/main.cpp
index 615d354..14b2760 100644
--- a/saco/main.cpp
+++ b/saco/main.cpp
@@ -37,7 +37,7 @@ CUnkClass2 *pUnkClass2=NULL;
CUnkClass3 *pUnkClass3=NULL;
CUnkClass4 *pUnkClass4=NULL;
CUnkClass5 *pUnkClass5=NULL;
-CUnkClass9 *pUnkClass9=NULL;
+CLabel *pLabel=NULL;
CUnkClass10 *pUnkClass10=NULL;
CUnkClass11 *pUnkClass11=NULL;
CUnkClass12 *pUnkClass12=NULL;
@@ -361,7 +361,7 @@ void DoInitStuff()
pUnkClass8 = new CUnkClass8();
}
- pUnkClass9 = new CUnkClass9(pD3DDevice);
+ pLabel = new CLabel(pD3DDevice);
pUnkClass10 = new CUnkClass10(pD3DDevice);
pUnkClass11 = new CUnkClass11();
pUnkClass12 = new CUnkClass12();
diff --git a/saco/main.h b/saco/main.h
index ab6ac10..2affa97 100644
--- a/saco/main.h
+++ b/saco/main.h
@@ -59,6 +59,7 @@ typedef struct _GAME_SETTINGS {
#include "deathwindow.h"
#include "spawnscreen.h"
#include "playertags.h"
+#include "label.h"
#include "svrnetstats.h"
#include "audiostream.h"
#include "archive/ArchiveFS.h"
@@ -71,7 +72,6 @@ typedef struct _GAME_SETTINGS {
#include "unkclass6.h"
#include "unkclass7.h"
#include "unkclass8.h"
-#include "unkclass9.h"
#include "unkclass10.h"
#include "unkclass11.h"
#include "unkclass12.h"
diff --git a/saco/saco.vcproj b/saco/saco.vcproj
index 6071f27..8066c50 100644
--- a/saco/saco.vcproj
+++ b/saco/saco.vcproj
@@ -639,12 +639,6 @@
-
-
-
-
@@ -733,6 +727,12 @@
+
+
+
+