GCSDK::CSchemaFull::GetFTSEnabled
0x00089090 · 285 bytes · __thiscall
_ZN5GCSDK11CSchemaFull13GetFTSEnabledENS_14ESchemaCatalogE
Decompiled
undefined (2 params)
/* GCSDK::CSchemaFull::GetFTSEnabled(GCSDK::ESchemaCatalog) */
undefined4 __thiscall GCSDK::CSchemaFull::GetFTSEnabled(CSchemaFull *this,undefined4 param_2)
{
ushort uVar1;
char cVar2;
int iVar3;
uint uVar4;
int iVar5;
undefined4 local_24 [5];
uVar4 = (uint)*(ushort *)(this + 0x38);
local_24[0] = param_2;
if (*(ushort *)(this + 0x38) != 0xffff) {
iVar3 = *(int *)(this + 0x2c);
do {
while( true ) {
iVar5 = uVar4 * 0x10;
cVar2 = (**(code **)(this + 0x28))(local_24,iVar3 + 8 + iVar5);
if (cVar2 != '\0') break;
cVar2 = (**(code **)(this + 0x28))(*(int *)(this + 0x2c) + iVar5 + 8,local_24);
if (cVar2 == '\0') {
return 1;
}
if ((CUtlRBTree<CUtlMap<GCSDK::ESchemaCatalog,bool,unsigned_short>::Node_t,unsigned_short,CUtlMap<GCSDK::ESchemaCatalog,bool,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<GCSDK::ESchemaCatalog,bool,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&CUtlRBTree<CUtlMap<GCSDK::ESchemaCatalog,bool,unsigned_short>::Node_t,unsigned_short,CUtlMap<GCSDK::ESchemaCatalog,bool,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<GCSDK::ESchemaCatalog,bool,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
CUtlRBTree<CUtlMap<GCSDK::ESchemaCatalog,bool,unsigned_short>::Node_t,unsigned_short,CUtlMap<GCSDK::ESchemaCatalog,bool,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<GCSDK::ESchemaCatalog,bool,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d28d2 = 0xffff;
DAT_000d28d4 = 0xffff;
__cxa_guard_release(&CUtlRBTree<CUtlMap<GCSDK::ESchemaCatalog,bool,unsigned_short>::Node_t,unsigned_short,CUtlMap<GCSDK::ESchemaCatalog,bool,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<GCSDK::ESchemaCatalog,bool,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::Links(unsigned_short)::s_Sentinel);
}
iVar3 = *(int *)(this + 0x2c);
uVar1 = *(ushort *)(iVar3 + 2 + iVar5);
uVar4 = (uint)uVar1;
if (uVar1 == 0xffff) {
return 0;
}
}
if ((CUtlRBTree<CUtlMap<GCSDK::ESchemaCatalog,bool,unsigned_short>::Node_t,unsigned_short,CUtlMap<GCSDK::ESchemaCatalog,bool,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<GCSDK::ESchemaCatalog,bool,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&CUtlRBTree<CUtlMap<GCSDK::ESchemaCatalog,bool,unsigned_short>::Node_t,unsigned_short,CUtlMap<GCSDK::ESchemaCatalog,bool,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<GCSDK::ESchemaCatalog,bool,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
CUtlRBTree<CUtlMap<GCSDK::ESchemaCatalog,bool,unsigned_short>::Node_t,unsigned_short,CUtlMap<GCSDK::ESchemaCatalog,bool,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<GCSDK::ESchemaCatalog,bool,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d28d2 = 0xffff;
DAT_000d28d4 = 0xffff;
__cxa_guard_release(&CUtlRBTree<CUtlMap<GCSDK::ESchemaCatalog,bool,unsigned_short>::Node_t,unsigned_short,CUtlMap<GCSDK::ESchemaCatalog,bool,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<GCSDK::ESchemaCatalog,bool,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::Links(unsigned_short)::s_Sentinel);
}
iVar3 = *(int *)(this + 0x2c);
uVar4 = (uint)*(ushort *)(iVar3 + iVar5);
} while (*(ushort *)(iVar3 + iVar5) != 0xffff);
}
return 0;
}
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.