CWorkshopManager::CWorkshopManager
0x00229660 · 281 bytes · __thiscall
_ZN16CWorkshopManagerC2EP33IWorkshopManagerCallbackInterface
Decompiled
undefined (2 params)
/* CWorkshopManager::CWorkshopManager(IWorkshopManagerCallbackInterface*) */
void __thiscall
CWorkshopManager::CWorkshopManager
(CWorkshopManager *this,IWorkshopManagerCallbackInterface *param_1)
{
*(undefined ***)this = &PTR_Update_002c8ba8;
this[0xc] = (CWorkshopManager)0x0;
*(undefined ***)(this + 8) = &PTR_Run_002c8b00;
*(undefined4 *)(this + 0x14) = 0;
*(undefined4 *)(this + 0x18) = 0;
*(undefined4 *)(this + 0x1c) = 0;
*(undefined4 *)(this + 0x20) = 0;
*(undefined4 *)(this + 0x24) = 0;
*(undefined4 *)(this + 0x10) = 0x51f;
this[0x2c] = (CWorkshopManager)0x0;
*(undefined ***)(this + 0x28) = &PTR_Run_002c8b18;
*(undefined4 *)(this + 0x34) = 0;
*(undefined4 *)(this + 0x38) = 0;
*(undefined4 *)(this + 0x3c) = 0;
*(undefined4 *)(this + 0x40) = 0;
*(undefined4 *)(this + 0x44) = 0;
*(undefined4 *)(this + 0x30) = 0x52c;
this[0x4c] = (CWorkshopManager)0x0;
*(undefined4 *)(this + 0x50) = 0;
*(undefined ***)(this + 0x48) = &PTR_Run_002c8b50;
*(undefined4 *)(this + 0x5c) = 0;
*(CWorkshopManager **)(this + 0x54) = this;
*(code **)(this + 0x58) = Steam_OnFileSubscribed;
/* try { // try from 0022970d to 00229711 has its CatchHandler @ 00229779 */
SteamAPI_RegisterCallback(this + 0x48,0x529);
this[100] = (CWorkshopManager)0x0;
*(undefined4 *)(this + 0x68) = 0;
*(undefined ***)(this + 0x60) = &PTR_Run_002c8b70;
*(undefined4 *)(this + 0x74) = 0;
*(CWorkshopManager **)(this + 0x6c) = this;
*(code **)(this + 0x70) = Steam_OnFileUnsubscribed;
/* try { // try from 00229743 to 00229747 has its CatchHandler @ 00229852 */
SteamAPI_RegisterCallback(this + 0x60,0x52a);
/* try { // try from 00229758 to 0022975c has its CatchHandler @ 0022984e */
CWorkshopFileInfoManager::CWorkshopFileInfoManager
((CWorkshopFileInfoManager *)(this + 0x78),
(IWorkshopFileInfoManagerCallbackInterface *)param_1);
/* try { // try from 00229766 to 0022976a has its CatchHandler @ 00229802 */
CUGCFileRequestManager::CUGCFileRequestManager((CUGCFileRequestManager *)(this + 0x114));
*(IWorkshopManagerCallbackInterface **)(this + 4) = param_1;
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.