CUtlRBTree<CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::Find
0x0021dd50 · 275 bytes · __thiscall
_ZNK10CUtlRBTreeIN7CUtlMapIy19PublishedFileInfo_ttE6Node_tEtNS2_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS3_tEtEE4FindERKS3_
Decompiled
undefined (2 params)
/* CUtlRBTree<CUtlMap<unsigned long long, PublishedFileInfo_t, unsigned short>::Node_t, unsigned
short, CUtlMap<unsigned long long, PublishedFileInfo_t, unsigned short>::CKeyLess,
CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned long long, PublishedFileInfo_t, unsigned
short>::Node_t, unsigned short>, unsigned short> >::Find(CUtlMap<unsigned long long,
PublishedFileInfo_t, unsigned short>::Node_t const&) const */
uint __thiscall
CUtlRBTree<CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::Find(CUtlRBTree<CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
*this,Node_t *param_1)
{
ushort uVar1;
char cVar2;
int iVar3;
int iVar4;
uint uVar5;
uVar5 = (uint)*(ushort *)(this + 0x10);
if (*(ushort *)(this + 0x10) != 0xffff) {
iVar3 = *(int *)(this + 4);
do {
while( true ) {
iVar4 = uVar5 * 0x2540;
cVar2 = (**(code **)this)(param_1,iVar3 + 8 + iVar4);
if (cVar2 != '\0') break;
cVar2 = (**(code **)this)(*(int *)(this + 4) + iVar4 + 8,param_1);
if (cVar2 == '\0') {
return uVar5;
}
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00341a9a = 0xffff;
DAT_00341a9c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
iVar3 = *(int *)(this + 4);
uVar1 = *(ushort *)(iVar3 + 2 + iVar4);
uVar5 = (uint)uVar1;
if (uVar1 == 0xffff) {
return 0xffffffff;
}
}
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
DAT_00341a9a = 0xffff;
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00341a9c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
iVar3 = *(int *)(this + 4);
uVar5 = (uint)*(ushort *)(iVar3 + iVar4);
} while (*(ushort *)(iVar3 + iVar4) != 0xffff);
}
return 0xffffffff;
}
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.