CInitTracker::~CInitTracker
0x0021c200 · 191 bytes · __thiscall
_ZN12CInitTrackerD2Ev
Decompiled
undefined (1 param)
/* CInitTracker::~CInitTracker() */
void __thiscall CInitTracker::~CInitTracker(CInitTracker *this)
{
undefined4 *puVar1;
CUtlMemory<CInitTracker::InitFunc*,int> *pCVar2;
int iVar3;
CUtlMemory<CInitTracker::InitFunc*,int> *pCVar4;
int iVar5;
CUtlMemory<CInitTracker::InitFunc*,int> *this_00;
iVar3 = 0;
pCVar2 = (CUtlMemory<CInitTracker::InitFunc*,int> *)(this + 0x10);
pCVar4 = pCVar2;
do {
iVar5 = 0;
if (0 < *(int *)(this + iVar3 * 4)) {
do {
puVar1 = *(undefined4 **)(*(int *)pCVar4 + iVar5 * 4);
if (puVar1[2] != 0) {
Msg("Missing shutdown function for %s : %s\n",*puVar1,puVar1[1]);
}
iVar5 = iVar5 + 1;
operator_delete(puVar1);
} while (iVar5 < *(int *)(this + iVar3 * 4));
}
*(int *)(pCVar4 + 0xc) = 0;
pCVar4 = pCVar4 + 0x14;
*(undefined4 *)(this + iVar3 * 4) = 0;
iVar3 = iVar3 + 1;
} while (iVar3 != 4);
pCVar4 = (CUtlMemory<CInitTracker::InitFunc*,int> *)(this + 0x60);
if (pCVar2 != (CUtlMemory<CInitTracker::InitFunc*,int> *)0x0) {
do {
this_00 = pCVar4 + -0x14;
*(undefined4 *)(pCVar4 + -8) = 0;
CUtlMemory<CInitTracker::InitFunc*,int>::Purge(this_00);
*(undefined4 *)(pCVar4 + -4) = *(undefined4 *)this_00;
CUtlMemory<CInitTracker::InitFunc*,int>::Purge(this_00);
pCVar4 = this_00;
} while (pCVar2 != this_00);
}
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.