CWin32UploadGameStats::ReceiveOKToSendFile
0x00212de0 · 241 bytes · __thiscall
_ZN21CWin32UploadGameStats19ReceiveOKToSendFileER22EGameStatsUploadStatusR10CUtlBuffer
Decompiled
undefined (3 params)
/* CWin32UploadGameStats::ReceiveOKToSendFile(EGameStatsUploadStatus&, CUtlBuffer&) */
undefined4 __thiscall
CWin32UploadGameStats::ReceiveOKToSendFile
(CWin32UploadGameStats *this,EGameStatsUploadStatus *param_1,CUtlBuffer *param_2)
{
char cVar1;
undefined4 uVar2;
char local_1d [13];
UpdateProgress(*(TGameStatsParameters **)(this + 0x2c),
"Receive game stats harvesting protocol upload permissible.");
uVar2 = DoBlockingReceive(this,1,param_2);
if ((char)uVar2 == '\0') {
UpdateProgress(*(TGameStatsParameters **)(this + 0x2c),"Receive failed.");
*(undefined4 *)param_1 = 1;
return uVar2;
}
if (((byte)param_2[0x15] & 1) == 0) {
cVar1 = CUtlBuffer::CheckGet(param_2,1);
if (cVar1 == '\0') goto LAB_00212e84;
cVar1 = *(char *)(*(int *)param_2 + (*(int *)(param_2 + 0xc) - *(int *)(param_2 + 0x20)));
*(int *)(param_2 + 0xc) = *(int *)(param_2 + 0xc) + 1;
}
else {
local_1d[0] = '\0';
CUtlBuffer::Scanf(param_2,"%c",local_1d);
cVar1 = local_1d[0];
}
if (cVar1 != '\0') {
UpdateProgress(*(TGameStatsParameters **)(this + 0x2c),"Server rejected upload command.");
*(undefined4 *)param_1 = 1;
return 0;
}
LAB_00212e84:
*(undefined4 *)(this + 0x14) = 6;
return uVar2;
}
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.