CUtlRBTree<CDmxSerializationDictionary::DmxElementInfo_t,int,bool(*)(CDmxSerializationDictionary::DmxElementInfo_t_const&,CDmxSerializationDictionary::DmxElementInfo_t_const&),CUtlMemory<UtlRBTreeNode_t<CDmxSerializationDictionary::DmxElementInfo_t,int>,int>>::Find
0x00beea80 · 277 bytes · __thiscall
_ZNK10CUtlRBTreeIN27CDmxSerializationDictionary16DmxElementInfo_tEiPFbRKS1_S3_E10CUtlMemoryI15UtlRBTreeNode_tIS1_iEiEE4FindES3_
Decompiled
undefined (2 params)
/* CUtlRBTree<CDmxSerializationDictionary::DmxElementInfo_t, int, bool
(*)(CDmxSerializationDictionary::DmxElementInfo_t const&,
CDmxSerializationDictionary::DmxElementInfo_t const&),
CUtlMemory<UtlRBTreeNode_t<CDmxSerializationDictionary::DmxElementInfo_t, int>, int>
>::Find(CDmxSerializationDictionary::DmxElementInfo_t const&) const */
int __thiscall
CUtlRBTree<CDmxSerializationDictionary::DmxElementInfo_t,int,bool(*)(CDmxSerializationDictionary::DmxElementInfo_t_const&,CDmxSerializationDictionary::DmxElementInfo_t_const&),CUtlMemory<UtlRBTreeNode_t<CDmxSerializationDictionary::DmxElementInfo_t,int>,int>>
::Find(CUtlRBTree<CDmxSerializationDictionary::DmxElementInfo_t,int,bool(*)(CDmxSerializationDictionary::DmxElementInfo_t_const&,CDmxSerializationDictionary::DmxElementInfo_t_const&),CUtlMemory<UtlRBTreeNode_t<CDmxSerializationDictionary::DmxElementInfo_t,int>,int>>
*this,DmxElementInfo_t *param_1)
{
int iVar1;
char cVar2;
int iVar3;
int iVar4;
iVar4 = *(int *)(this + 0x10);
if (iVar4 != -1) {
iVar3 = *(int *)(this + 4);
do {
while( true ) {
iVar1 = iVar4 * 0x18;
cVar2 = (**(code **)this)(param_1,iVar3 + 0x10 + iVar1);
if (cVar2 != '\0') break;
cVar2 = (**(code **)this)(*(int *)(this + 4) + iVar1 + 0x10,param_1);
if (cVar2 == '\0') {
return iVar4;
}
if ((Links(int)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar4 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f71eb8 = 0xffffffff;
DAT_00f71ebc = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
iVar3 = *(int *)(this + 4);
iVar4 = *(int *)(iVar3 + 4 + iVar1);
if (iVar4 == -1) {
return -1;
}
}
if ((Links(int)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f71eb8 = 0xffffffff;
DAT_00f71ebc = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
iVar3 = *(int *)(this + 4);
iVar4 = *(int *)(iVar3 + iVar4 * 0x18);
} while (iVar4 != -1);
}
return -1;
}
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.