GCSDK::CJob::Continue
0x0005f450 · 393 bytes · __thiscall
_ZN5GCSDK4CJob8ContinueEv
Decompiled
undefined (1 param)
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* GCSDK::CJob::Continue() */
void __thiscall GCSDK::CJob::Continue(CJob *this)
{
uint *puVar1;
undefined8 uVar2;
undefined4 uVar3;
int iVar4;
char cVar5;
int iVar6;
int iVar7;
int extraout_EDX;
uVar3 = g_pJobCur;
g_pJobCur = this;
*(undefined4 *)(this + 0x50) = uVar3;
uVar2 = rdtsc();
*(int *)(this + 0x40) = (int)uVar2;
*(int *)(this + 0x44) = (int)((ulonglong)uVar2 >> 0x20);
CJobTime::SetToJobTime((CJobTime *)(this + 0x30));
CJobTime::CServerMicroSecsPassed((CJobTime *)(this + 0x38));
if (-1 < extraout_EDX) {
CJobTime::SetFromJobTime(CONCAT44(10000000,(CJobTime *)(this + 0x38)));
}
*(int *)(*(int *)(this + 0x60) + 0xdc) = *(int *)(*(int *)(this + 0x60) + 0xdc) + 1;
*(undefined4 *)(this + 0x24) = 0;
iVar4 = _DAT_000e89f8;
if (((*(int **)(this + 0x68) != (int *)0x0) && (iVar7 = **(int **)(this + 0x68), iVar7 != 0)) &&
(Continue()::s_bCurrentlyProfilingJob == '\0')) {
Continue()::s_bCurrentlyProfilingJob = 1;
if ((_DAT_000e804c != 0) || (DAT_000e8050 == '\0')) {
iVar6 = ThreadGetCurrentId();
if (iVar4 == iVar6) {
if (iVar7 != *_DAT_000e8054) {
_DAT_000e8054 =
(int *)CVProfNode::GetSubNode((char *)_DAT_000e8054,iVar7,(char *)0x0,0xb561c);
}
puVar1 = (uint *)(_DAT_000e80e0 + 4 + _DAT_000e8054[0x1c] * 8);
*puVar1 = *puVar1 | 4;
CVProfNode::EnterScope();
DAT_000e8050 = '\0';
}
}
Coroutine_Continue(*(undefined4 *)(this + 0x10),&DAT_000b2b65);
iVar4 = _DAT_000e89f8;
if ((DAT_000e8050 == '\0') || (_DAT_000e804c != 0)) {
iVar7 = ThreadGetCurrentId();
if (iVar4 == iVar7) {
cVar5 = CVProfNode::ExitScope();
if (cVar5 != '\0') {
_DAT_000e8054 = (int *)_DAT_000e8054[0x19];
}
DAT_000e8050 = _DAT_000e8054 == (int *)0xe8058;
}
}
Continue()::s_bCurrentlyProfilingJob = 0;
return;
}
Coroutine_Continue(*(undefined4 *)(this + 0x10),&DAT_000b2b65);
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.