CUtlMultiList<CDataManagerBase::resource_lru_element_t,unsigned_short>::LinkBefore
0x00bdcad0 · 214 bytes · __thiscall
_ZN13CUtlMultiListIN16CDataManagerBase22resource_lru_element_tEtE10LinkBeforeEttt
Decompiled
undefined (4 params)
/* CUtlMultiList<CDataManagerBase::resource_lru_element_t, unsigned short>::LinkBefore(unsigned
short, unsigned short, unsigned short) */
void __thiscall
CUtlMultiList<CDataManagerBase::resource_lru_element_t,unsigned_short>::LinkBefore
(CUtlMultiList<CDataManagerBase::resource_lru_element_t,unsigned_short> *this,
ushort param_1,ushort param_2,ushort param_3)
{
short *psVar1;
int iVar2;
int iVar3;
ushort uVar4;
uint uVar5;
uVar5 = (uint)param_1;
Unlink(this,param_1,param_3);
iVar2 = *(int *)this + (uint)param_3 * 0xc;
*(ushort *)(iVar2 + 10) = param_2;
if (param_2 == 0xffff) {
*(undefined2 *)(iVar2 + 8) = *(undefined2 *)(*(int *)(this + 0xc) + 2 + uVar5 * 10);
*(ushort *)(*(int *)(this + 0xc) + 2 + uVar5 * 10) = param_3;
uVar4 = *(ushort *)(iVar2 + 8);
}
else {
iVar3 = *(int *)this + (uint)param_2 * 0xc;
*(undefined2 *)(iVar2 + 8) = *(undefined2 *)(iVar3 + 8);
*(ushort *)(iVar3 + 8) = param_3;
uVar4 = *(ushort *)(iVar2 + 8);
}
if (uVar4 == 0xffff) {
*(ushort *)(*(int *)(this + 0xc) + uVar5 * 10) = param_3;
}
else {
*(ushort *)(*(int *)this + (uint)uVar4 * 0xc + 10) = param_3;
}
psVar1 = (short *)(uVar5 * 10 + *(int *)(this + 0xc) + 4);
*psVar1 = *psVar1 + 1;
if (*(int *)(this + 0x28) != 0) {
*(ushort *)(*(int *)(this + 0x28) + (uint)param_3 * 2) = param_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.