CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::RemoveAll
0x0007c170 · 216 bytes · __thiscall
_ZN10CUtlRBTreeIN7CUtlMapI8CSteamIDPN5GCSDK12CGCGSSessionEtE6Node_tEtNS5_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS6_tEtEE9RemoveAllEv
Decompiled
undefined (1 param)
/* CUtlRBTree<CUtlMap<CSteamID, GCSDK::CGCGSSession*, unsigned short>::Node_t, unsigned short,
CUtlMap<CSteamID, GCSDK::CGCGSSession*, unsigned short>::CKeyLess,
CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID, GCSDK::CGCGSSession*, unsigned short>::Node_t,
unsigned short>, unsigned short> >::RemoveAll() */
void __thiscall
CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::RemoveAll(CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
*this)
{
ushort *puVar1;
int iVar2;
ushort uVar3;
int iVar4;
ushort uVar5;
uVar3 = *(ushort *)(this + 0x16);
if (uVar3 != 0xffff) {
iVar2 = *(int *)(this + 8);
iVar4 = 0;
if (0 < iVar2) {
do {
uVar5 = (ushort)iVar4;
if ((iVar4 < iVar2) && (uVar5 <= uVar3)) {
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d2872 = 0xffff;
DAT_000d2874 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
puVar1 = (ushort *)(*(int *)(this + 4) + iVar4 * 0x14);
if (*puVar1 != uVar5) {
puVar1[1] = *(ushort *)(this + 0x14);
*(ushort *)(*(int *)(this + 4) + iVar4 * 0x14) = uVar5;
*(ushort *)(this + 0x14) = uVar5;
}
uVar3 = *(ushort *)(this + 0x16);
}
} while (((uVar3 != uVar5) && (iVar2 = *(int *)(this + 8), (int)(iVar4 + 1U & 0xffff) < iVar2)
) && (iVar4 = iVar4 + 1, iVar4 != 0xffff));
}
*(undefined2 *)(this + 0x10) = 0xffff;
*(undefined2 *)(this + 0x12) = 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.