CUtlRBTree<CUtlMap<char_const*,EventGroup,int>::Node_t,int,CUtlMap<char_const*,EventGroup,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,EventGroup,int>::Node_t,int>,int>>::RemoveAll
0x00b9f7c0 · 279 bytes · __thiscall
_ZN10CUtlRBTreeIN7CUtlMapIPKc10EventGroupiE6Node_tEiNS4_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS5_iEiEE9RemoveAllEv
Decompiled
undefined (1 param)
/* CUtlRBTree<CUtlMap<char const*, EventGroup, int>::Node_t, int, CUtlMap<char const*, EventGroup,
int>::CKeyLess, CUtlMemory<UtlRBTreeNode_t<CUtlMap<char const*, EventGroup, int>::Node_t, int>,
int> >::RemoveAll() */
void __thiscall
CUtlRBTree<CUtlMap<char_const*,EventGroup,int>::Node_t,int,CUtlMap<char_const*,EventGroup,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,EventGroup,int>::Node_t,int>,int>>
::RemoveAll(CUtlRBTree<CUtlMap<char_const*,EventGroup,int>::Node_t,int,CUtlMap<char_const*,EventGroup,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,EventGroup,int>::Node_t,int>,int>>
*this)
{
int iVar1;
int iVar2;
int iVar3;
int *piVar4;
iVar1 = *(int *)(this + 0x1c);
if (iVar1 != -1) {
iVar2 = 0;
iVar3 = 0;
if (0 < *(int *)(this + 8)) {
do {
if ((iVar3 < *(int *)(this + 8)) && (iVar3 <= iVar1)) {
if ((Links(int)::s_Sentinel == '\0') &&
(iVar1 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar1 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f6d208 = 0xffffffff;
DAT_00f6d20c = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
piVar4 = (int *)(*(int *)(this + 4) + iVar2);
if (*piVar4 != iVar3) {
CUtlRBTree<CChoreoEvent*,unsigned_short,bool(*)(CChoreoEvent*const&,CChoreoEvent*const&),CUtlMemory<UtlRBTreeNode_t<CChoreoEvent*,unsigned_short>,unsigned_short>>
::RemoveAll((CUtlRBTree<CChoreoEvent*,unsigned_short,bool(*)(CChoreoEvent*const&,CChoreoEvent*const&),CUtlMemory<UtlRBTreeNode_t<CChoreoEvent*,unsigned_short>,unsigned_short>>
*)(piVar4 + 5));
*(undefined2 *)(piVar4 + 10) = 0xffff;
CUtlMemory<UtlRBTreeNode_t<CChoreoEvent*,unsigned_short>,unsigned_short>::Purge
((CUtlMemory<UtlRBTreeNode_t<CChoreoEvent*,unsigned_short>,unsigned_short> *)
(piVar4 + 6));
*(undefined2 *)((int)piVar4 + 0x2a) = 0xffff;
CUtlMemory<UtlRBTreeNode_t<CChoreoEvent*,unsigned_short>,unsigned_short>::Purge
((CUtlMemory<UtlRBTreeNode_t<CChoreoEvent*,unsigned_short>,unsigned_short> *)
(piVar4 + 6));
*(undefined4 *)(*(int *)(this + 4) + 4 + iVar2) = *(undefined4 *)(this + 0x18);
*(int *)(*(int *)(this + 4) + iVar2) = iVar3;
*(int *)(this + 0x18) = iVar3;
}
iVar1 = *(int *)(this + 0x1c);
}
do {
if (((iVar1 == iVar3) || (iVar3 = iVar3 + 1, iVar3 < 0)) || (*(int *)(this + 8) <= iVar3))
goto LAB_00b9f810;
iVar2 = iVar2 + 0x30;
} while (iVar3 < 0);
} while( true );
}
LAB_00b9f810:
*(undefined4 *)(this + 0x10) = 0xffffffff;
*(undefined4 *)(this + 0x14) = 0;
}
return;
}
SourceMod gamedata
paste intoaddons/sourcemod/gamedata/<your_plugin>.txt
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.
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.