CDatacenter::RequestUpdate
0x0005c0a0 · 283 bytes · __thiscall
_ZN11CDatacenter13RequestUpdateEv
Decompiled
undefined (1 param)
/* CDatacenter::RequestUpdate() */
void __thiscall CDatacenter::RequestUpdate(CDatacenter *this)
{
int iVar1;
undefined4 uVar2;
longdouble lVar3;
iVar1 = GGCClient();
if (iVar1 != 0) {
uVar2 = *(undefined4 *)(this + 0x10);
iVar1 = GGCClient();
iVar1 = GCSDK::CJobMgr::GetPJob(CONCAT44(uVar2,iVar1 + 0x28));
if (iVar1 != 0) {
if (*(char *)(iVar1 + 0x7c) == '\0') {
return;
}
if (*(char *)(iVar1 + 0x7d) != '\0') {
if (*(int *)(this + 8) != 0) {
KeyValues::deleteThis();
}
if (*(int *)(this + 0xc) != 0) {
KeyValues::deleteThis();
}
uVar2 = KeyValues::MakeCopy(*(KeyValues **)(iVar1 + 0x78));
*(undefined4 *)(this + 8) = uVar2;
uVar2 = KeyValues::MakeCopy(*(KeyValues **)(iVar1 + 0x78));
*(undefined4 *)(this + 0xc) = uVar2;
*(undefined1 *)(iVar1 + 0x7e) = 0;
RequestStop(this);
DevMsg("Datacenter::RequestUpdate %s\n","successful");
lVar3 = (longdouble)Plat_FloatTime();
*(float *)(this + 0x18) =
(float)lVar3 + *(float *)(mm_datacenter_update_interval._28_4_ + 0x2c);
OnDatacenterInfoUpdated(this);
return;
}
*(undefined1 *)(iVar1 + 0x7e) = 0;
RequestStop(this);
goto LAB_0005c198;
}
}
RequestStop(this);
LAB_0005c198:
DevMsg("Datacenter::RequestUpdate %s\n","failed");
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.