TZip::GetMemory
0x000eef40 · 75 bytes · __thiscall
_ZN4TZip9GetMemoryEPPvPm
Decompiled
undefined (3 params)
/* TZip::GetMemory(void**, unsigned long*) */
uint __thiscall TZip::GetMemory(TZip *this,void **param_1,ulong *param_2)
{
if (this[0x24] == (TZip)0x0) {
AddCentral(this);
}
this[0x24] = (TZip)0x1;
if (param_1 != (void **)0x0) {
*param_1 = *(void **)(this + 0x18);
}
if (param_2 != (ulong *)0x0) {
*param_2 = *(ulong *)(this + 0x10);
}
return -(uint)(*(int *)(this + 0x18) == 0) & 0x20000;
}
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.