aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/localchatwriter.h
diff options
context:
space:
mode:
authorTom Barham <me@cpdt.dev>2022-03-07 04:45:07 +1000
committerGitHub <noreply@github.com>2022-03-06 18:45:07 +0000
commit17aaab6f250cd4d576fce78392596762e2a09142 (patch)
tree9e4b125126cefc67f64441958111ac12031a6e7c /NorthstarDedicatedTest/localchatwriter.h
parent7f7ff36ad258e4cd01dd2fe8742befe3c73f4293 (diff)
downloadNorthstarLauncher-17aaab6f250cd4d576fce78392596762e2a09142.tar.gz
NorthstarLauncher-17aaab6f250cd4d576fce78392596762e2a09142.zip
Fix #101, chat hook memory leak (#105)
Diffstat (limited to 'NorthstarDedicatedTest/localchatwriter.h')
-rw-r--r--NorthstarDedicatedTest/localchatwriter.h28
1 files changed, 26 insertions, 2 deletions
diff --git a/NorthstarDedicatedTest/localchatwriter.h b/NorthstarDedicatedTest/localchatwriter.h
index b9ca3220..8048e084 100644
--- a/NorthstarDedicatedTest/localchatwriter.h
+++ b/NorthstarDedicatedTest/localchatwriter.h
@@ -9,6 +9,32 @@ struct vgui_Color
unsigned char a;
};
+class vgui_BaseRichText;
+
+class CHudChat
+{
+ public:
+ static CHudChat** allHuds;
+
+ char unknown1[720];
+
+ vgui_Color m_sameTeamColor;
+ vgui_Color m_enemyTeamColor;
+ vgui_Color m_mainTextColor;
+ vgui_Color m_networkNameColor;
+
+ char unknown2[12];
+
+ int m_unknownContext;
+
+ char unknown3[8];
+
+ vgui_BaseRichText* m_richText;
+
+ CHudChat* next;
+ CHudChat* previous;
+};
+
class LocalChatWriter
{
public:
@@ -45,6 +71,4 @@ class LocalChatWriter
void InsertDefaultFade();
};
-bool IsFirstHud(void* hud);
-
void InitialiseLocalChatWriter(HMODULE baseAddress);