CWorkshop::~CWorkshop
0x0023e720 · 451 bytes · __thiscall
_ZN9CWorkshopD2Ev
Decompiled
undefined (1 param)
/* CWorkshop::~CWorkshop() */
void __thiscall CWorkshop::~CWorkshop(CWorkshop *this)
{
*(undefined ***)this = &PTR_Connect_002cac88;
*(undefined **)(this + 4) = &DAT_002cacdc;
*(undefined4 *)(this + 0x108) = 0;
CUtlMemory<unsigned_long_long,int>::Purge((CUtlMemory<unsigned_long_long,int> *)(this + 0xfc));
*(undefined4 *)(this + 0x10c) = *(undefined4 *)(this + 0xfc);
CUtlMemory<unsigned_long_long,int>::Purge((CUtlMemory<unsigned_long_long,int> *)(this + 0xfc));
*(undefined4 *)(this + 0xf4) = 0;
CUtlMemory<unsigned_long_long,int>::Purge((CUtlMemory<unsigned_long_long,int> *)(this + 0xe8));
*(undefined4 *)(this + 0xf8) = *(undefined4 *)(this + 0xe8);
CUtlMemory<unsigned_long_long,int>::Purge((CUtlMemory<unsigned_long_long,int> *)(this + 0xe8));
*(undefined4 *)(this + 0xe0) = 0;
CUtlMemory<unsigned_long_long,int>::Purge((CUtlMemory<unsigned_long_long,int> *)(this + 0xd4));
*(undefined4 *)(this + 0xe4) = *(undefined4 *)(this + 0xd4);
CUtlMemory<unsigned_long_long,int>::Purge((CUtlMemory<unsigned_long_long,int> *)(this + 0xd4));
*(undefined4 *)(this + 0xcc) = 0;
CUtlMemory<unsigned_long_long,int>::Purge((CUtlMemory<unsigned_long_long,int> *)(this + 0xc0));
*(undefined4 *)(this + 0xd0) = *(undefined4 *)(this + 0xc0);
CUtlMemory<unsigned_long_long,int>::Purge((CUtlMemory<unsigned_long_long,int> *)(this + 0xc0));
*(undefined4 *)(this + 0xb8) = 0;
CUtlMemory<unsigned_long_long,int>::Purge((CUtlMemory<unsigned_long_long,int> *)(this + 0xac));
*(undefined4 *)(this + 0xbc) = *(undefined4 *)(this + 0xac);
CUtlMemory<unsigned_long_long,int>::Purge((CUtlMemory<unsigned_long_long,int> *)(this + 0xac));
*(undefined4 *)(this + 0x98) = 0;
CUtlMemory<unsigned_long_long,int>::Purge((CUtlMemory<unsigned_long_long,int> *)(this + 0x8c));
*(undefined4 *)(this + 0x9c) = *(undefined4 *)(this + 0x8c);
CUtlMemory<unsigned_long_long,int>::Purge((CUtlMemory<unsigned_long_long,int> *)(this + 0x8c));
*(undefined ***)(this + 0x48) = &PTR_Run_002cac28;
if (*(int *)(this + 0x58) != 0 || *(int *)(this + 0x54) != 0) {
SteamAPI_UnregisterCallResult(this + 0x48,*(int *)(this + 0x54),*(int *)(this + 0x58));
*(undefined4 *)(this + 0x54) = 0;
*(undefined4 *)(this + 0x58) = 0;
}
*(undefined ***)(this + 0x28) = &PTR_Run_002cac10;
if (*(int *)(this + 0x38) != 0 || *(int *)(this + 0x34) != 0) {
SteamAPI_UnregisterCallResult(this + 0x28,*(int *)(this + 0x34),*(int *)(this + 0x38));
*(undefined4 *)(this + 0x34) = 0;
*(undefined4 *)(this + 0x38) = 0;
}
*(undefined ***)(this + 8) = &PTR_Run_002cabf8;
if (*(int *)(this + 0x18) != 0 || *(int *)(this + 0x14) != 0) {
SteamAPI_UnregisterCallResult(this + 8,*(int *)(this + 0x14),*(int *)(this + 0x18));
*(undefined4 *)(this + 0x14) = 0;
*(undefined4 *)(this + 0x18) = 0;
}
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.