CUserMessages::~CUserMessages
0x0057d360 · 206 bytes · __thiscall
_ZN13CUserMessagesD2Ev
Decompiled
undefined (1 param)
/* CUserMessages::~CUserMessages() */
void __thiscall CUserMessages::~CUserMessages(CUserMessages *this)
{
int iVar1;
void *pvVar2;
CUtlMemory<void(*)(bf_read&),int> *this_00;
int local_24;
int local_20;
CUtlMemory<void(*)(bf_read&),int> *pCVar3;
local_24 = 0;
local_20 = 0;
iVar1 = *(int *)(this + 0x14);
if (0 < iVar1) {
do {
pvVar2 = *(void **)(*(int *)(this + 4) + 0x14 + local_24);
if (pvVar2 != (void *)0x0) {
pCVar3 = (CUtlMemory<void(*)(bf_read&),int> *)((int)pvVar2 + 0x30);
do {
this_00 = pCVar3 + -0x14;
*(undefined4 *)(pCVar3 + -8) = 0;
CUtlMemory<void(*)(bf_read&),int>::Purge(this_00);
*(undefined4 *)(pCVar3 + -4) = *(undefined4 *)this_00;
CUtlMemory<void(*)(bf_read&),int>::Purge(this_00);
pCVar3 = this_00;
} while ((CUtlMemory<void(*)(bf_read&),int> *)((int)pvVar2 + 8) != this_00);
operator_delete(pvVar2);
}
local_20 = local_20 + 1;
local_24 = local_24 + 0x18;
} while (local_20 != iVar1);
}
CUtlDict<CUserMessage*,int>::RemoveAll((CUtlDict<CUserMessage*,int> *)this);
CUtlDict<CUserMessage*,int>::RemoveAll((CUtlDict<CUserMessage*,int> *)this);
CUtlRBTree<CUtlMap<char_const*,CUserMessage*,int>::Node_t,int,CUtlMap<char_const*,CUserMessage*,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CUserMessage*,int>::Node_t,int>,int>>
::RemoveAll((CUtlRBTree<CUtlMap<char_const*,CUserMessage*,int>::Node_t,int,CUtlMap<char_const*,CUserMessage*,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CUserMessage*,int>::Node_t,int>,int>>
*)this);
*(undefined4 *)(this + 0x18) = 0xffffffff;
CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CUserMessage*,int>::Node_t,int>,int>::Purge
((CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CUserMessage*,int>::Node_t,int>,int> *)
(this + 4));
*(undefined4 *)(this + 0x1c) = 0xffffffff;
CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CUserMessage*,int>::Node_t,int>,int>::Purge
((CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CUserMessage*,int>::Node_t,int>,int> *)
(this + 4));
return;
}
SourceMod gamedata
paste intoaddons/sourcemod/gamedata/<your_plugin>.txt
used as the SourceMod key — change to fit your plugin's convention
SourceMod library name (server / engine / matchmaking)
Just a Signatures{} block, ready to drop into a gamedata
file. Wire it up in your plugin however you like - SDKCall, DHooks,
raw memory ops, or anything else.
Signatures + Functions block. The plugin uses
DHookCreateFromConf - DHooks reads return type, this-type,
calling convention, and argument types straight from the gamedata. Less
boilerplate in the plugin, types travel with the gamedata.
Gamedata KeyValues
DHooks plugin example
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.