CWorkshopFileInfoManager::Steam_OnGetPublishedItemVoteDetails
0x0021c840 · 146 bytes · __thiscall
_ZN24CWorkshopFileInfoManager35Steam_OnGetPublishedItemVoteDetailsEP48RemoteStorageGetPublishedItemVoteDetailsResult_tb
Decompiled
undefined (3 params)
/* CWorkshopFileInfoManager::Steam_OnGetPublishedItemVoteDetails(RemoteStorageGetPublishedItemVoteDetailsResult_t*,
bool) */
void __thiscall
CWorkshopFileInfoManager::Steam_OnGetPublishedItemVoteDetails
(CWorkshopFileInfoManager *this,RemoteStorageGetPublishedItemVoteDetailsResult_t *param_1,
bool param_2)
{
ushort uVar1;
int iVar2;
undefined4 local_14;
undefined4 local_10;
if ((!param_2) && (*(int *)param_1 == 1)) {
local_14 = *(undefined4 *)(param_1 + 4);
local_10 = *(undefined4 *)(param_1 + 8);
uVar1 = CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::Find
((CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short> *)
(this + 0x40),(ulonglong *)&local_14);
if (uVar1 != 0xffff) {
iVar2 = (uint)uVar1 * 0x2540 + *(int *)(this + 0x44);
if (iVar2 != -0x10) {
*(undefined1 *)(iVar2 + 0x252c) = 1;
*(undefined4 *)(iVar2 + 0x2538) = *(undefined4 *)(param_1 + 0x18);
*(undefined4 *)(iVar2 + 0x2530) = *(undefined4 *)(param_1 + 0xc);
*(undefined4 *)(iVar2 + 0x2534) = *(undefined4 *)(param_1 + 0x10);
*(undefined4 *)(iVar2 + 0x2534) = *(undefined4 *)(param_1 + 0x14);
this[0x94] = (CWorkshopFileInfoManager)0x0;
return;
}
}
}
return;
}
SourceMod gamedata
paste intoaddons/sourcemod/gamedata/<your_plugin>.txt
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.
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.