CUtlLinkedList<CUtlBuffer,unsigned_short,false,unsigned_short,CUtlMemory<UtlLinkedListElem_t<CUtlBuffer,unsigned_short>,unsigned_short>>::InsertAfter
0x0020cc70 · 293 bytes · __thiscall
_ZN14CUtlLinkedListI10CUtlBuffertLb0Et10CUtlMemoryI19UtlLinkedListElem_tIS0_tEtEE11InsertAfterEt
Decompiled
undefined (2 params)
/* CUtlLinkedList<CUtlBuffer, unsigned short, false, unsigned short,
CUtlMemory<UtlLinkedListElem_t<CUtlBuffer, unsigned short>, unsigned short>
>::InsertAfter(unsigned short) */
uint __thiscall
CUtlLinkedList<CUtlBuffer,unsigned_short,false,unsigned_short,CUtlMemory<UtlLinkedListElem_t<CUtlBuffer,unsigned_short>,unsigned_short>>
::InsertAfter(CUtlLinkedList<CUtlBuffer,unsigned_short,false,unsigned_short,CUtlMemory<UtlLinkedListElem_t<CUtlBuffer,unsigned_short>,unsigned_short>>
*this,ushort param_1)
{
ushort uVar1;
ushort uVar2;
uint uVar3;
uint uVar4;
int iVar5;
int iVar6;
CUtlBuffer *this_00;
uVar3 = AllocInternal(this,false);
uVar2 = (ushort)uVar3;
if (uVar2 != 0xffff) {
uVar4 = uVar3 & 0xffff;
if ((((int)uVar4 < *(int *)(this + 4)) && (uVar2 <= *(ushort *)(this + 0x16))) &&
(uVar2 != *(ushort *)(*(int *)this + 0x38 + uVar4 * 0x3c))) {
Unlink(this,uVar2);
iVar5 = *(int *)this + uVar4 * 0x3c;
*(ushort *)(iVar5 + 0x38) = param_1;
}
else {
iVar5 = *(int *)this + uVar4 * 0x3c;
*(ushort *)(iVar5 + 0x38) = param_1;
}
if (param_1 == 0xffff) {
*(undefined2 *)(iVar5 + 0x3a) = *(undefined2 *)(this + 0xc);
*(ushort *)(this + 0xc) = uVar2;
uVar1 = *(ushort *)(iVar5 + 0x3a);
}
else {
iVar6 = (uint)param_1 * 0x3c + *(int *)this;
*(undefined2 *)(iVar5 + 0x3a) = *(undefined2 *)(iVar6 + 0x3a);
*(ushort *)(iVar6 + 0x3a) = uVar2;
uVar1 = *(ushort *)(iVar5 + 0x3a);
}
if (uVar1 == 0xffff) {
*(ushort *)(this + 0xe) = uVar2;
}
else {
*(ushort *)((uint)uVar1 * 0x3c + *(int *)this + 0x38) = uVar2;
}
*(short *)(this + 0x12) = *(short *)(this + 0x12) + 1;
this_00 = (CUtlBuffer *)(uVar4 * 0x3c + *(int *)this);
if (this_00 != (CUtlBuffer *)0x0) {
CUtlBuffer::CUtlBuffer(this_00,0,0,0);
}
return uVar3;
}
return uVar3;
}
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.