GCSDK::CRecordInfo::CompareIndexLists
0x00093cb0 · 426 bytes · __thiscall
_ZN5GCSDK11CRecordInfo17CompareIndexListsEPS0_
Decompiled
undefined (2 params)
/* GCSDK::CRecordInfo::CompareIndexLists(GCSDK::CRecordInfo*) */
undefined4 __thiscall GCSDK::CRecordInfo::CompareIndexLists(CRecordInfo *this,CRecordInfo *param_1)
{
int iVar1;
char cVar2;
undefined4 uVar3;
int iVar4;
int iVar5;
int iVar6;
CUtlMemory<int,int> *this_00;
int local_40;
int local_30 [8];
iVar1 = *(int *)(param_1 + 0xd4);
if (iVar1 != *(int *)(this + 0xd4)) {
return 0;
}
local_30[0] = 0;
local_30[1] = 0;
local_30[2] = 0;
local_30[3] = 0;
local_30[4] = 0;
/* try { // try from 00093d18 to 00093e65 has its CatchHandler @ 00093e6e */
CUtlVector<GCSDK::FieldSet_t,CUtlMemory<GCSDK::FieldSet_t,int>>::CopyArray
((CUtlVector<GCSDK::FieldSet_t,CUtlMemory<GCSDK::FieldSet_t,int>> *)local_30,
*(FieldSet_t **)(param_1 + 200),iVar1);
local_40 = 0;
if (0 < iVar1) {
do {
iVar4 = *(int *)(this + 200);
if (local_30[3] < 1) {
LAB_00093e00:
uVar3 = 0;
goto LAB_00093e02;
}
iVar5 = 0;
while( true ) {
iVar6 = iVar5 * 0xb0;
cVar2 = FieldSet_t::CompareFieldSets
((FieldSet_t *)(local_40 * 0xb0 + iVar4),this,
(FieldSet_t *)(local_30[0] + iVar6),param_1);
if (cVar2 != '\0') break;
iVar5 = iVar5 + 1;
if (local_30[3] <= iVar5) goto LAB_00093e00;
}
this_00 = (CUtlMemory<int,int> *)(local_30[0] + iVar6);
*(undefined4 *)(this_00 + 0x20) = 0;
CUtlMemory<int,int>::Purge(this_00 + 0x14);
*(undefined4 *)(this_00 + 0x24) = *(undefined4 *)(this_00 + 0x14);
CUtlMemory<int,int>::Purge(this_00 + 0x14);
*(undefined4 *)(this_00 + 0xc) = 0;
CUtlMemory<int,int>::Purge(this_00);
*(undefined4 *)(this_00 + 0x10) = *(undefined4 *)this_00;
CUtlMemory<int,int>::Purge(this_00);
iVar4 = (local_30[3] - iVar5) + -1;
if (0 < iVar4) {
_V_memmove((void *)(local_30[0] + iVar6),(void *)((iVar5 + 1) * 0xb0 + local_30[0]),
iVar4 * 0xb0);
}
local_40 = local_40 + 1;
local_30[3] = local_30[3] + -1;
} while (local_40 != iVar1);
}
uVar3 = 1;
LAB_00093e02:
CUtlVector<GCSDK::FieldSet_t,CUtlMemory<GCSDK::FieldSet_t,int>>::RemoveAll
((CUtlVector<GCSDK::FieldSet_t,CUtlMemory<GCSDK::FieldSet_t,int>> *)local_30);
CUtlMemory<GCSDK::FieldSet_t,int>::Purge((CUtlMemory<GCSDK::FieldSet_t,int> *)local_30);
local_30[4] = local_30[0];
CUtlMemory<GCSDK::FieldSet_t,int>::Purge((CUtlMemory<GCSDK::FieldSet_t,int> *)local_30);
return uVar3;
}
SourceMod gamedata
paste intoaddons/sourcemod/gamedata/<your_plugin>.txt
used as the SourceMod key — change to fit your plugin's convention
SourceMod library name (server / engine / matchmaking)
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.
Gamedata KeyValues
DHooks plugin example
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.