CWorkshopManager::DeletePublishedFile
0x002292f0 · 282 bytes · __cdecl
_ZN16CWorkshopManager19DeletePublishedFileEy
Decompiled
undefined (1 param)
/* CWorkshopManager::DeletePublishedFile(unsigned long long) */
undefined4 CWorkshopManager::DeletePublishedFile(ulonglong param_1)
{
char cVar1;
int *piVar2;
longlong lVar3;
char *pcVar4;
piVar2 = (int *)GetISteamRemoteStorage();
if (piVar2 == (int *)0x0) {
cVar1 = LoggingSystem_IsChannelEnabled(LOG_WORKSHOP,1);
if (cVar1 == '\0') {
return 0;
}
pcVar4 = "[WorkshopManager] Unable to delete the file (%llu) from Steam! (Not Connected)";
}
else {
lVar3 = (**(code **)(*piVar2 + 0xa0))(piVar2,param_1._4_4_);
if (lVar3 != 0) {
if (*(int *)((int)param_1 + 0x18) != 0 || *(int *)((int)param_1 + 0x14) != 0) {
SteamAPI_UnregisterCallResult
((int)param_1 + 8,*(int *)((int)param_1 + 0x14),*(int *)((int)param_1 + 0x18));
}
*(longlong *)((int)param_1 + 0x14) = lVar3;
*(int *)((int)param_1 + 0x1c) = (int)param_1;
*(code **)((int)param_1 + 0x20) = Steam_OnDeletePublishedFile;
*(undefined4 *)((int)param_1 + 0x24) = 0;
SteamAPI_RegisterCallResult((int)param_1 + 8,lVar3);
return 1;
}
cVar1 = LoggingSystem_IsChannelEnabled(LOG_WORKSHOP,1);
if (cVar1 == '\0') {
return 0;
}
pcVar4 = "[WorkshopManager] Unable to delete the file (%llu) from Steam!";
}
LoggingSystem_Log(LOG_WORKSHOP,1,pcVar4,param_1._4_4_);
return 0;
}
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.