diff options
author | Tom Barham <me@cpdt.dev> | 2022-03-07 04:45:07 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-06 18:45:07 +0000 |
commit | 17aaab6f250cd4d576fce78392596762e2a09142 (patch) | |
tree | 9e4b125126cefc67f64441958111ac12031a6e7c /NorthstarDedicatedTest/localchatwriter.h | |
parent | 7f7ff36ad258e4cd01dd2fe8742befe3c73f4293 (diff) | |
download | NorthstarLauncher-17aaab6f250cd4d576fce78392596762e2a09142.tar.gz NorthstarLauncher-17aaab6f250cd4d576fce78392596762e2a09142.zip |
Fix #101, chat hook memory leak (#105)
Diffstat (limited to 'NorthstarDedicatedTest/localchatwriter.h')
-rw-r--r-- | NorthstarDedicatedTest/localchatwriter.h | 28 |
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); |