GCSDK::CSchema::~CSchema
0x0008f950 · 601 bytes · __thiscall
_ZN5GCSDK7CSchemaD2Ev
Decompiled
undefined (1 param)
/* GCSDK::CSchema::~CSchema() */
void __thiscall GCSDK::CSchema::~CSchema(CSchema *this)
{
int *piVar1;
int *piVar2;
int iVar3;
int iVar4;
CUtlMemory<int,int> *this_00;
int iVar5;
piVar2 = *(int **)(this + 0xc4);
if (piVar2 != (int *)0x0) {
LOCK();
piVar1 = piVar2 + 1;
*piVar1 = *piVar1 + -1;
UNLOCK();
if (*piVar1 == 0) {
(**(code **)(*piVar2 + 8))(piVar2);
}
*(undefined4 *)(this + 0xc4) = 0;
}
*(undefined4 *)(this + 0x134) = 0;
CUtlMemory<GCSDK::AlterField_t,int>::Purge((CUtlMemory<GCSDK::AlterField_t,int> *)(this + 0x128));
*(undefined4 *)(this + 0x138) = *(undefined4 *)(this + 0x128);
CUtlMemory<GCSDK::AlterField_t,int>::Purge((CUtlMemory<GCSDK::AlterField_t,int> *)(this + 0x128));
*(undefined4 *)(this + 0x120) = 0;
CUtlMemory<GCSDK::RenameField_t,int>::Purge
((CUtlMemory<GCSDK::RenameField_t,int> *)(this + 0x114));
*(undefined4 *)(this + 0x124) = *(undefined4 *)(this + 0x114);
CUtlMemory<GCSDK::RenameField_t,int>::Purge
((CUtlMemory<GCSDK::RenameField_t,int> *)(this + 0x114));
*(undefined4 *)(this + 0x10c) = 0;
CUtlMemory<GCSDK::DeleteField_t,int>::Purge
((CUtlMemory<GCSDK::DeleteField_t,int> *)(this + 0x100));
*(undefined4 *)(this + 0x110) = *(undefined4 *)(this + 0x100);
CUtlMemory<GCSDK::DeleteField_t,int>::Purge
((CUtlMemory<GCSDK::DeleteField_t,int> *)(this + 0x100));
iVar5 = *(int *)(this + 0xec) + -1;
iVar3 = iVar5 * 0x124;
if (-1 < iVar5) {
do {
iVar5 = iVar5 + -1;
iVar4 = iVar3 + *(int *)(this + 0xe0);
*(undefined ***)(iVar4 + 0x104) = &PTR__CCopyableUtlVector_000b6100;
*(undefined4 *)(iVar4 + 0x114) = 0;
CUtlMemory<GCSDK::FKColumnRelation_t,int>::Purge
((CUtlMemory<GCSDK::FKColumnRelation_t,int> *)(iVar4 + 0x108));
*(undefined4 *)(iVar4 + 0x118) = *(undefined4 *)(iVar4 + 0x108);
CUtlMemory<GCSDK::FKColumnRelation_t,int>::Purge
((CUtlMemory<GCSDK::FKColumnRelation_t,int> *)(iVar4 + 0x108));
iVar3 = iVar3 + -0x124;
} while (iVar5 != -1);
}
*(undefined4 *)(this + 0xec) = 0;
CUtlMemory<GCSDK::FKData_t,int>::Purge((CUtlMemory<GCSDK::FKData_t,int> *)(this + 0xe0));
*(undefined4 *)(this + 0xf0) = *(undefined4 *)(this + 0xe0);
CUtlMemory<GCSDK::FKData_t,int>::Purge((CUtlMemory<GCSDK::FKData_t,int> *)(this + 0xe0));
*(undefined4 *)(this + 0xd4) = 0;
CUtlMemory<int,int>::Purge((CUtlMemory<int,int> *)(this + 200));
*(undefined4 *)(this + 0xd8) = *(undefined4 *)(this + 200);
CUtlMemory<int,int>::Purge((CUtlMemory<int,int> *)(this + 200));
iVar5 = *(int *)(this + 0xa8) + -1;
iVar3 = iVar5 * 0xb0;
if (-1 < iVar5) {
do {
iVar5 = iVar5 + -1;
this_00 = (CUtlMemory<int,int> *)(iVar3 + *(int *)(this + 0x9c));
*(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);
iVar3 = iVar3 + -0xb0;
} while (iVar5 != -1);
}
*(undefined4 *)(this + 0xa8) = 0;
CUtlMemory<GCSDK::FieldSet_t,int>::Purge((CUtlMemory<GCSDK::FieldSet_t,int> *)(this + 0x9c));
*(undefined4 *)(this + 0xac) = *(undefined4 *)(this + 0x9c);
CUtlMemory<GCSDK::FieldSet_t,int>::Purge((CUtlMemory<GCSDK::FieldSet_t,int> *)(this + 0x9c));
*(undefined4 *)(this + 0x94) = 0;
CUtlMemory<GCSDK::Field_t,int>::Purge((CUtlMemory<GCSDK::Field_t,int> *)(this + 0x88));
*(undefined4 *)(this + 0x98) = *(undefined4 *)(this + 0x88);
CUtlMemory<GCSDK::Field_t,int>::Purge((CUtlMemory<GCSDK::Field_t,int> *)(this + 0x88));
return;
}
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.