CWorkshopManager::~CWorkshopManager
0x002298a0 · 300 bytes · __thiscall
_ZN16CWorkshopManagerD2Ev
Decompiled
undefined (1 param)
/* CWorkshopManager::~CWorkshopManager() */
void __thiscall CWorkshopManager::~CWorkshopManager(CWorkshopManager *this)
{
*(undefined ***)this = &PTR_Update_002c8ba8;
*(undefined4 *)(this + 0x13c) = 0;
CUtlMemory<UGCFileRequest_t*,int>::Purge((CUtlMemory<UGCFileRequest_t*,int> *)(this + 0x130));
*(undefined4 *)(this + 0x140) = *(undefined4 *)(this + 0x130);
CUtlMemory<UGCFileRequest_t*,int>::Purge((CUtlMemory<UGCFileRequest_t*,int> *)(this + 0x130));
CUtlRBTree<CUtlMap<unsigned_long_long,UGCFileRequest_t_const*,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_long_long,UGCFileRequest_t_const*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,UGCFileRequest_t_const*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::RemoveAll((CUtlRBTree<CUtlMap<unsigned_long_long,UGCFileRequest_t_const*,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_long_long,UGCFileRequest_t_const*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,UGCFileRequest_t_const*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
*)(this + 0x114));
*(undefined2 *)(this + 0x128) = 0xffff;
CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,UGCFileRequest_t_const*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
::Purge((CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,UGCFileRequest_t_const*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
*)(this + 0x118));
*(undefined2 *)(this + 0x12a) = 0xffff;
CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,UGCFileRequest_t_const*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
::Purge((CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,UGCFileRequest_t_const*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
*)(this + 0x118));
CWorkshopFileInfoManager::~CWorkshopFileInfoManager((CWorkshopFileInfoManager *)(this + 0x78));
*(undefined ***)(this + 0x60) = &PTR___cxa_pure_virtual_002c8b30;
if (((byte)this[100] & 1) != 0) {
SteamAPI_UnregisterCallback(this + 0x60);
}
*(undefined ***)(this + 0x48) = &PTR___cxa_pure_virtual_002c8b30;
if (((byte)this[0x4c] & 1) != 0) {
SteamAPI_UnregisterCallback(this + 0x48);
}
*(undefined ***)(this + 0x28) = &PTR_Run_002c8b18;
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_002c8b00;
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.