CUtlLinkedList<unsigned_short,unsigned_short,false,unsigned_short,CUtlMemory<UtlLinkedListElem_t<unsigned_short,unsigned_short>,unsigned_short>>::LinkBefore
0x001854c0 · 276 bytes · __thiscall
_ZN14CUtlLinkedListIttLb0Et10CUtlMemoryI19UtlLinkedListElem_tIttEtEE10LinkBeforeEtt
Decompiled
undefined (3 params)
/* CUtlLinkedList<unsigned short, unsigned short, false, unsigned short,
CUtlMemory<UtlLinkedListElem_t<unsigned short, unsigned short>, unsigned short>
>::LinkBefore(unsigned short, unsigned short) */
void __thiscall
CUtlLinkedList<unsigned_short,unsigned_short,false,unsigned_short,CUtlMemory<UtlLinkedListElem_t<unsigned_short,unsigned_short>,unsigned_short>>
::LinkBefore(CUtlLinkedList<unsigned_short,unsigned_short,false,unsigned_short,CUtlMemory<UtlLinkedListElem_t<unsigned_short,unsigned_short>,unsigned_short>>
*this,ushort param_1,ushort param_2)
{
ushort uVar1;
uint uVar2;
int iVar3;
int local_18;
uVar2 = (uint)param_2;
if (((int)uVar2 < *(int *)(this + 4)) && (param_2 <= *(ushort *)(this + 0x16))) {
iVar3 = *(int *)this + uVar2 * 6;
uVar1 = *(ushort *)(iVar3 + 2);
if (param_2 != uVar1) {
if (uVar1 == 0xffff) {
*(undefined2 *)(this + 0xc) = *(undefined2 *)(iVar3 + 4);
}
else {
*(undefined2 *)(*(int *)this + 4 + (uint)uVar1 * 6) = *(undefined2 *)(iVar3 + 4);
}
if (*(ushort *)(iVar3 + 4) == 0xffff) {
*(undefined2 *)(this + 0xe) = *(undefined2 *)(iVar3 + 2);
}
else {
*(undefined2 *)(*(int *)this + (uint)*(ushort *)(iVar3 + 4) * 6 + 2) =
*(undefined2 *)(iVar3 + 2);
}
*(ushort *)(iVar3 + 4) = param_2;
*(ushort *)(iVar3 + 2) = param_2;
*(short *)(this + 0x12) = *(short *)(this + 0x12) + -1;
}
}
local_18 = uVar2 * 6;
local_18 = local_18 + *(int *)this;
*(ushort *)(local_18 + 4) = param_1;
if (param_1 == 0xffff) {
uVar1 = *(ushort *)(this + 0xe);
*(ushort *)(local_18 + 2) = uVar1;
*(ushort *)(this + 0xe) = param_2;
}
else {
iVar3 = *(int *)this + (uint)param_1 * 6;
uVar1 = *(ushort *)(iVar3 + 2);
*(ushort *)(local_18 + 2) = uVar1;
*(ushort *)(iVar3 + 2) = param_2;
}
if (uVar1 == 0xffff) {
*(short *)(this + 0x12) = *(short *)(this + 0x12) + 1;
*(ushort *)(this + 0xc) = param_2;
return;
}
*(ushort *)(*(int *)this + (uint)uVar1 * 6 + 4) = param_2;
*(short *)(this + 0x12) = *(short *)(this + 0x12) + 1;
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.