VProfPlayback_StepBack
0x00233e20 · 228 bytes · unknown
_Z22VProfPlayback_StepBackv
Decompiled
undefined (0 params)
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* VProfPlayback_StepBack() */
int VProfPlayback_StepBack(void)
{
char cVar1;
int iVar2;
bool local_d;
if (g_VProfRecorder._6624_4_ != 2) {
return 0;
}
iVar2 = g_VProfRecorder._6636_4_ + -1;
g_VProfRecorder[0x19fc] = 0;
g_VProfRecorder._6636_4_ = 0xffffffff;
CVProfile::Term();
g_VProfRecorder[0x19fc] = 1;
(**(code **)(*(int *)(g_pFileSystem + 4) + 0x10))
(g_pFileSystem + 4,g_VProfRecorder._6628_4_,g_VProfRecorder._6640_4_,0);
CVProfRecorder::Playback_ReadTick((CVProfRecorder *)g_VProfRecorder,-1,(bool *)0x0);
if ((int)g_VProfRecorder._6636_4_ < iVar2) {
do {
cVar1 = CVProfRecorder::Playback_ReadTick((CVProfRecorder *)g_VProfRecorder,iVar2,&local_d);
if (cVar1 == '\0') {
return 0;
}
} while (((local_d == false) && (g_VProfRecorder[0x19f4] == '\0')) &&
((int)g_VProfRecorder._6636_4_ < iVar2));
}
return g_VProfRecorder[0x19fc] + 1;
}
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.