CUtlRBTree<CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::Node_t,unsigned_short,CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::NewNode
0x001a93a0 · 314 bytes · __thiscall
_ZN10CUtlRBTreeIN7CUtlMapIN18CNetworkStringDict10CTableItemE23CNetworkStringTableItemtE6Node_tEtNS4_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS5_tEtEE7NewNodeEv
Decompiled
undefined (1 param)
/* CUtlRBTree<CUtlMap<CNetworkStringDict::CTableItem, CNetworkStringTableItem, unsigned
short>::Node_t, unsigned short, CUtlMap<CNetworkStringDict::CTableItem, CNetworkStringTableItem,
unsigned short>::CKeyLess, CUtlMemory<UtlRBTreeNode_t<CUtlMap<CNetworkStringDict::CTableItem,
CNetworkStringTableItem, unsigned short>::Node_t, unsigned short>, unsigned short> >::NewNode()
*/
uint __thiscall
CUtlRBTree<CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::Node_t,unsigned_short,CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::NewNode(CUtlRBTree<CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::Node_t,unsigned_short,CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
*this)
{
ushort uVar1;
undefined *puVar2;
uint uVar3;
uint uVar4;
int iVar5;
int iVar6;
uint uVar7;
uVar1 = *(ushort *)(this + 0x14);
uVar7 = (uint)uVar1;
if (uVar1 != 0xffff) {
iVar5 = *(int *)(this + 4);
puVar2 = (undefined *)((uint)uVar1 * 0x34 + iVar5);
*(undefined2 *)(this + 0x14) = *(undefined2 *)(puVar2 + 2);
goto LAB_001a93ce;
}
iVar5 = *(int *)(this + 8);
if ((int)(uint)*(ushort *)(this + 0x16) < iVar5) {
uVar3 = *(ushort *)(this + 0x16) + 1;
uVar4 = uVar3 & 0xffff;
if (iVar5 <= (int)uVar4) {
uVar3 = uVar7;
uVar4 = 0xffff;
}
if (iVar5 <= (int)uVar4) goto LAB_001a946f;
LAB_001a9437:
puVar2 = (undefined *)((uVar3 & 0xffff) * 0x34);
uVar7 = uVar3;
}
else {
iVar6 = 0;
if (iVar5 < 1) {
iVar6 = 0xffff;
}
uVar3 = (0 < iVar5) - 1;
if (iVar6 < iVar5) goto LAB_001a9437;
LAB_001a946f:
CUtlMemory<UtlRBTreeNode_t<CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
::Grow((CUtlMemory<UtlRBTreeNode_t<CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
*)(this + 4),1);
iVar5 = *(int *)(this + 8);
if ((int)(uint)*(ushort *)(this + 0x16) < iVar5) {
uVar3 = *(ushort *)(this + 0x16) + 1;
uVar4 = uVar3 & 0xffff;
if ((int)uVar4 < iVar5) {
puVar2 = (undefined *)(uVar4 * 0x34);
uVar7 = uVar3;
}
else {
puVar2 = &DAT_0033ffcc;
uVar4 = 0xffff;
}
}
else {
uVar4 = 0;
puVar2 = &DAT_0033ffcc;
if (iVar5 < 1) {
uVar4 = 0xffff;
}
else {
puVar2 = (undefined *)0x0;
uVar7 = 0;
}
}
if (iVar5 <= (int)uVar4) {
Error("CUtlRBTree overflow!\n");
}
}
iVar5 = *(int *)(this + 4);
*(short *)(this + 0x16) = (short)uVar7;
puVar2 = puVar2 + iVar5;
LAB_001a93ce:
if (puVar2 != (undefined *)0xfffffff8) {
*(undefined4 *)(puVar2 + 8) = 0xffffffff;
CUtlString::CUtlString((CUtlString *)(puVar2 + 0xc));
*(undefined4 *)(puVar2 + 0x1c) = 0;
/* try { // try from 001a93f8 to 001a93fc has its CatchHandler @ 001a94ee */
CNetworkStringTableItem::CNetworkStringTableItem((CNetworkStringTableItem *)(puVar2 + 0x20));
iVar5 = *(int *)(this + 4);
}
*(int *)(this + 0x18) = iVar5;
return uVar7;
}
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.