GCSDK::CJobMgr::BFrameFuncRunYieldingJobs
0x00061440 · 514 bytes · __thiscall
_ZN5GCSDK7CJobMgr25BFrameFuncRunYieldingJobsER11CLimitTimer
Decompiled
undefined (2 params)
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* GCSDK::CJobMgr::BFrameFuncRunYieldingJobs(CLimitTimer&) */
undefined4 __thiscall GCSDK::CJobMgr::BFrameFuncRunYieldingJobs(CJobMgr *this,CLimitTimer *param_1)
{
uint *puVar1;
uint uVar2;
int iVar3;
char cVar4;
undefined4 uVar5;
int iVar6;
undefined4 local_34;
undefined4 local_30;
undefined4 local_28;
undefined4 local_24;
int local_20;
uVar5 = ThreadGetCurrentId();
if (*(int *)(this + 0xe8) == 0) {
*(undefined4 *)(this + 0xe8) = uVar5;
}
local_34 = 0;
local_30 = 0;
if (_strstr == 0) {
local_20 = 0;
}
else {
(**(code **)(_strstr + 0x50))
(_strstr,&local_34,0,0,0,0,"/data/src/gcsdk/jobmgr.cpp",0x5d,
&BFrameFuncRunYieldingJobs(CLimitTimer&)::tm_fmt,"(%s)%s","Jobs/Coroutines",
"CJobMgr::BResumeYieldingJobs");
local_20 = _strstr;
}
iVar3 = _DAT_000e89f8;
local_28 = local_34;
local_24 = local_30;
if ((_DAT_000e804c != 0) || (DAT_000e8050 == '\0')) {
/* try { // try from 000615d6 to 00061636 has its CatchHandler @ 00061674 */
iVar6 = ThreadGetCurrentId();
if (iVar3 == iVar6) {
if ((char *)*_DAT_000e8054 != "CJobMgr::BResumeYieldingJobs") {
_DAT_000e8054 =
(int *)CVProfNode::GetSubNode((char *)_DAT_000e8054,0xb5954,(char *)0x0,0xb561c);
}
puVar1 = (uint *)(_DAT_000e80e0 + 4 + _DAT_000e8054[0x1c] * 8);
*puVar1 = *puVar1 | 4;
CVProfNode::EnterScope();
DAT_000e8050 = '\0';
}
}
uVar2 = *(uint *)(this + 0x4c);
*(uint *)(this + 0x4c) = uVar2 + 1;
/* try { // try from 00061527 to 0006152b has its CatchHandler @ 00061653 */
uVar5 = BResumeYieldingJobsFromList(this,(CUtlLinkedList *)(this + 0x24),uVar2,param_1);
iVar3 = _DAT_000e89f8;
if ((DAT_000e8050 == '\0') || (_DAT_000e804c != 0)) {
iVar6 = ThreadGetCurrentId();
if (iVar3 == iVar6) {
cVar4 = CVProfNode::ExitScope();
if (cVar4 != '\0') {
_DAT_000e8054 = (int *)_DAT_000e8054[0x19];
}
DAT_000e8050 = _DAT_000e8054 == (int *)0xe8058;
}
}
if (local_20 != 0) {
(**(code **)(local_20 + 0x54))(local_20,local_28,local_24,0,0,0);
}
*(undefined4 *)(this + 0xb0) = *(undefined4 *)(this + 0x14);
return uVar5;
}
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.