CServerDemo::WriteCamera
0x00596380 · 179 bytes · __thiscall
_ZN11CServerDemo11WriteCameraEP9KeyValues
Decompiled
undefined (2 params)
/* CServerDemo::WriteCamera(KeyValues*) */
void __thiscall CServerDemo::WriteCamera(CServerDemo *this,KeyValues *param_1)
{
int iVar1;
KeyValues *this_00;
undefined4 *puVar2;
int *piVar3;
if (WriteCamera(KeyValues*)::hSym == '\0') {
iVar1 = __cxa_guard_acquire(&WriteCamera(KeyValues*)::hSym);
if (iVar1 != 0) {
/* try { // try from 00596400 to 0059641c has its CatchHandler @ 00596433 */
piVar3 = (int *)KeyValuesSystem();
WriteCamera(KeyValues*)::hSym = (**(code **)(*piVar3 + 0x14))(piVar3,"camera",1);
__cxa_guard_release(&WriteCamera(KeyValues*)::hSym);
}
}
this_00 = (KeyValues *)KeyValues::FindKey(param_1,WriteCamera(KeyValues*)::hSym);
if (this_00 != (KeyValues *)0x0) {
puVar2 = (undefined4 *)KeyValues::GetPtr(this_00,(char *)0x0,(void *)0x0);
if (puVar2 != (undefined4 *)0x0) {
*puVar2 = 0x28;
puVar2[1] = 0xffffffff;
CCircularBuffer::Write(*(CCircularBuffer **)this,puVar2,0x28);
}
}
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.