CUtlLinkedList<CEventInfo,int,true,int,CUtlFixedMemory<UtlLinkedListElem_t<CEventInfo,int>>>::RemoveAll
0x001166c0 · 465 bytes · __thiscall
_ZN14CUtlLinkedListI10CEventInfoiLb1Ei15CUtlFixedMemoryI19UtlLinkedListElem_tIS0_iEEE9RemoveAllEv
Decompiled
undefined (1 param)
/* CUtlLinkedList<CEventInfo, int, true, int, CUtlFixedMemory<UtlLinkedListElem_t<CEventInfo, int> >
>::RemoveAll() */
void __thiscall
CUtlLinkedList<CEventInfo,int,true,int,CUtlFixedMemory<UtlLinkedListElem_t<CEventInfo,int>>>::
RemoveAll(CUtlLinkedList<CEventInfo,int,true,int,CUtlFixedMemory<UtlLinkedListElem_t<CEventInfo,int>>>
*this)
{
undefined4 *puVar1;
undefined4 *puVar2;
int iVar3;
undefined4 *puVar4;
int iVar5;
undefined4 *puVar6;
if ((*(int *)(this + 0x20) == 0) && (*(int *)(this + 0x24) == -1)) {
return;
}
puVar6 = *(undefined4 **)this;
iVar5 = -(uint)(puVar6 == (undefined4 *)0x0);
do {
if (puVar6 == (undefined4 *)0x0) {
if (iVar5 == -1) {
LAB_0011682c:
*(undefined4 *)(this + 0xc) = 0;
*(undefined4 *)(this + 0x10) = 0;
*(undefined4 *)(this + 0x18) = 0;
return;
}
LAB_00116858:
iVar3 = *(int *)(this + 0x24);
puVar2 = *(undefined4 **)(this + 0x20);
}
else {
if (((iVar5 == -1) || ((int)puVar6[1] <= iVar5)) ||
(puVar1 = puVar6 + iVar5 * 0x10 + 2, puVar1 == (undefined4 *)0x0)) goto LAB_00116858;
puVar2 = *(undefined4 **)(this + 0x20);
if (((puVar2 == (undefined4 *)0x0) || (iVar3 = *(int *)(this + 0x24), iVar3 < 0)) ||
((int)puVar2[1] <= iVar3)) {
LAB_00116778:
if ((puVar1 == (undefined4 *)puVar1[0xe]) && (puVar1 != (undefined4 *)puVar1[0xf])) {
iVar3 = *(int *)(this + 0x24);
}
else {
if ((void *)puVar1[5] != (void *)0x0) {
operator_delete((void *)puVar1[5]);
}
puVar1[7] = &PTR__CEngineRecipientFilter_002ae5c8;
puVar1[0xc] = 0;
CUtlMemory<int,int>::Purge((CUtlMemory<int,int> *)(puVar1 + 9));
puVar1[0xd] = puVar1[9];
CUtlMemory<int,int>::Purge((CUtlMemory<int,int> *)(puVar1 + 9));
puVar1[7] = &PTR__IRecipientFilter_002aa388;
puVar1[0xe] = puVar1;
puVar1[0xf] = *(undefined4 *)(this + 0x14);
*(undefined4 **)(this + 0x14) = puVar1;
iVar3 = *(int *)(this + 0x24);
puVar2 = *(undefined4 **)(this + 0x20);
}
}
else {
puVar4 = puVar2 + 2;
if ((puVar1 < puVar4) || (puVar4 + puVar2[1] * 0x10 <= puVar1)) {
for (puVar4 = (undefined4 *)*puVar2; puVar4 != (undefined4 *)0x0;
puVar4 = (undefined4 *)*puVar4) {
while (puVar4 + 2 <= puVar1) {
if (puVar1 < puVar4 + 2 + puVar4[1] * 0x10) goto joined_r0x0011681a;
puVar4 = (undefined4 *)*puVar4;
if (puVar4 == (undefined4 *)0x0) goto LAB_00116778;
}
}
goto LAB_00116778;
}
if ((int)puVar1 <= (int)(puVar4 + iVar3 * 0x10)) goto LAB_00116778;
}
}
joined_r0x0011681a:
if ((((puVar2 == puVar6) && (iVar3 == iVar5)) || (puVar6 == (undefined4 *)0x0)) ||
((iVar5 == -1 || ((int)puVar6[1] <= iVar5)))) goto LAB_0011682c;
iVar5 = iVar5 + 1;
if ((int)puVar6[1] <= iVar5) {
puVar6 = (undefined4 *)*puVar6;
iVar5 = -(uint)(puVar6 == (undefined4 *)0x0);
}
} while( true );
}
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.