CUtlDict<CUtlDict<CNetPropManager::PropInfo_t,int>*,int>::PurgeAndDeleteElements
0x0074c340 · 478 bytes · __thiscall
_ZN8CUtlDictIPS_IN15CNetPropManager10PropInfo_tEiEiE22PurgeAndDeleteElementsEv
Decompiled
undefined (1 param)
/* CUtlDict<CUtlDict<CNetPropManager::PropInfo_t, int>*, int>::PurgeAndDeleteElements() */
void __thiscall
CUtlDict<CUtlDict<CNetPropManager::PropInfo_t,int>*,int>::PurgeAndDeleteElements
(CUtlDict<CUtlDict<CNetPropManager::PropInfo_t,int>*,int> *this)
{
CUtlRBTree<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int,CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int>,int>>
*this_00;
int iVar1;
int *piVar2;
int iVar3;
int iVar4;
iVar1 = CUtlRBTree<CUtlMap<char_const*,CUtlDict<CNetPropManager::PropInfo_t,int>*,int>::Node_t,int,CUtlMap<char_const*,CUtlDict<CNetPropManager::PropInfo_t,int>*,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CUtlDict<CNetPropManager::PropInfo_t,int>*,int>::Node_t,int>,int>>
::FirstInorder((CUtlRBTree<CUtlMap<char_const*,CUtlDict<CNetPropManager::PropInfo_t,int>*,int>::Node_t,int,CUtlMap<char_const*,CUtlDict<CNetPropManager::PropInfo_t,int>*,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CUtlDict<CNetPropManager::PropInfo_t,int>*,int>::Node_t,int>,int>>
*)this);
joined_r0x0074c35a:
if (iVar1 == -1) {
CUtlRBTree<CUtlMap<char_const*,CUtlDict<CNetPropManager::PropInfo_t,int>*,int>::Node_t,int,CUtlMap<char_const*,CUtlDict<CNetPropManager::PropInfo_t,int>*,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CUtlDict<CNetPropManager::PropInfo_t,int>*,int>::Node_t,int>,int>>
::RemoveAll((CUtlRBTree<CUtlMap<char_const*,CUtlDict<CNetPropManager::PropInfo_t,int>*,int>::Node_t,int,CUtlMap<char_const*,CUtlDict<CNetPropManager::PropInfo_t,int>*,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CUtlDict<CNetPropManager::PropInfo_t,int>*,int>::Node_t,int>,int>>
*)this);
return;
}
free(*(void **)(*(int *)(this + 4) + 0x10 + iVar1 * 0x18));
this_00 = *(CUtlRBTree<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int,CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int>,int>>
**)(*(int *)(this + 4) + 0x14 + iVar1 * 0x18);
if (this_00 !=
(CUtlRBTree<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int,CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int>,int>>
*)0x0) {
iVar4 = *(int *)(this_00 + 0x10);
if (CUtlRBTree<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int,CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int>,int>>
::Links(int)::s_Sentinel == '\0') goto LAB_0074c3e2;
LAB_0074c398:
if (iVar4 == -1) goto LAB_0074c428;
do {
piVar2 = (int *)(iVar4 * 0x34 + *(int *)(this_00 + 4));
iVar3 = iVar4;
while( true ) {
if (*piVar2 == -1) goto LAB_0074c45e;
if ((CUtlRBTree<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int,CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int>,int>>
::Links(int)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&CUtlRBTree<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int,CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int>,int>>
::Links(int)::s_Sentinel), iVar4 != 0)) {
CUtlRBTree<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int,CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int>,int>>
::Links(int)::s_Sentinel = -1;
DAT_00f43894 = 0xffffffff;
DAT_00f43898 = 0xffffffff;
__cxa_guard_release(&CUtlRBTree<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int,CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int>,int>>
::Links(int)::s_Sentinel);
}
iVar4 = CUtlRBTree<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int,CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int>,int>>
::Links(int)::s_Sentinel;
if (iVar3 != -1) {
iVar4 = *(int *)(iVar3 * 0x34 + *(int *)(this_00 + 4));
}
if (CUtlRBTree<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int,CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int>,int>>
::Links(int)::s_Sentinel != '\0') goto LAB_0074c398;
LAB_0074c3e2:
iVar3 = __cxa_guard_acquire(&CUtlRBTree<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int,CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int>,int>>
::Links(int)::s_Sentinel);
if (iVar3 == 0) goto LAB_0074c398;
CUtlRBTree<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int,CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int>,int>>
::Links(int)::s_Sentinel = -1;
DAT_00f43894 = 0xffffffff;
DAT_00f43898 = 0xffffffff;
__cxa_guard_release(&CUtlRBTree<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int,CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int>,int>>
::Links(int)::s_Sentinel);
if (iVar4 != -1) break;
LAB_0074c428:
piVar2 = &CUtlRBTree<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int,CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int>,int>>
::Links(int)::s_Sentinel;
iVar3 = iVar4;
}
} while( true );
}
goto LAB_0074c4a2;
LAB_0074c45e:
for (; iVar3 != -1;
iVar3 = CUtlRBTree<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int,CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int>,int>>
::NextInorder(this_00,iVar3)) {
free(*(void **)(iVar3 * 0x34 + *(int *)(this_00 + 4) + 0x10));
}
CUtlRBTree<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int,CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int>,int>>
::RemoveAll(this_00);
CUtlRBTree<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int,CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int>,int>>
::RemoveAll(this_00);
*(undefined4 *)(this_00 + 0x18) = 0xffffffff;
CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int>,int>
::Purge((CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int>,int>
*)(this_00 + 4));
*(undefined4 *)(this_00 + 0x1c) = 0xffffffff;
CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int>,int>
::Purge((CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CNetPropManager::PropInfo_t,int>::Node_t,int>,int>
*)(this_00 + 4));
operator_delete(this_00);
LAB_0074c4a2:
iVar1 = CUtlRBTree<CUtlMap<char_const*,CUtlDict<CNetPropManager::PropInfo_t,int>*,int>::Node_t,int,CUtlMap<char_const*,CUtlDict<CNetPropManager::PropInfo_t,int>*,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CUtlDict<CNetPropManager::PropInfo_t,int>*,int>::Node_t,int>,int>>
::NextInorder((CUtlRBTree<CUtlMap<char_const*,CUtlDict<CNetPropManager::PropInfo_t,int>*,int>::Node_t,int,CUtlMap<char_const*,CUtlDict<CNetPropManager::PropInfo_t,int>*,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CUtlDict<CNetPropManager::PropInfo_t,int>*,int>::Node_t,int>,int>>
*)this,iVar1);
goto joined_r0x0074c35a;
}
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.