GCSDK::CJobMgr::BResumeYieldingJobsFromList
0x00061350 · 179 bytes · __thiscall
_ZN5GCSDK7CJobMgr27BResumeYieldingJobsFromListER14CUtlLinkedListINS0_13JobYielding_tEiLb0Ei10CUtlMemoryI19UtlLinkedListElem_tIS2_iEiEEjR11CLimitTimer
Decompiled
undefined (4 params)
/* GCSDK::CJobMgr::BResumeYieldingJobsFromList(CUtlLinkedList<GCSDK::CJobMgr::JobYielding_t, int,
false, int, CUtlMemory<UtlLinkedListElem_t<GCSDK::CJobMgr::JobYielding_t, int>, int> >&, unsigned
int, CLimitTimer&) */
bool __thiscall
GCSDK::CJobMgr::BResumeYieldingJobsFromList
(CJobMgr *this,CUtlLinkedList *param_1,uint param_2,CLimitTimer *param_3)
{
int iVar1;
CJob *this_00;
undefined8 uVar2;
undefined4 *puVar3;
int iVar4;
uint uVar5;
undefined4 local_28;
undefined4 local_24;
do {
do {
iVar4 = *(int *)(param_1 + 0x18);
if (iVar4 == 0) goto LAB_000613bc;
iVar1 = *(int *)(param_1 + 0xc);
puVar3 = (undefined4 *)(*(int *)param_1 + iVar1 * 0x14);
if (param_2 < (uint)puVar3[2]) goto LAB_000613bc;
local_24 = puVar3[1];
local_28 = *puVar3;
iVar4 = CUtlRBTree<CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::Node_t,int,CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::Node_t,int>,int>>
::Find((CUtlRBTree<CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::Node_t,int,CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::Node_t,int>,int>>
*)this,(Node_t *)&local_28);
CUtlLinkedList<GCSDK::CJobMgr::JobYielding_t,int,false,int,CUtlMemory<UtlLinkedListElem_t<GCSDK::CJobMgr::JobYielding_t,int>,int>>
::Unlink((CUtlLinkedList<GCSDK::CJobMgr::JobYielding_t,int,false,int,CUtlMemory<UtlLinkedListElem_t<GCSDK::CJobMgr::JobYielding_t,int>,int>>
*)param_1,iVar1);
*(undefined4 *)(*(int *)param_1 + 0x10 + iVar1 * 0x14) = *(undefined4 *)(param_1 + 0x14);
*(int *)(param_1 + 0x14) = iVar1;
} while (iVar4 == -1);
this_00 = *(CJob **)(iVar4 * 0x1c + *(int *)(this + 4) + 0x18);
if (*(int *)(this_00 + 0x24) == 5) {
CJob::Continue(this_00);
}
uVar2 = rdtsc();
uVar5 = (uint)((ulonglong)uVar2 >> 0x20);
} while ((uVar5 < *(uint *)(param_3 + 4)) ||
((uVar5 <= *(uint *)(param_3 + 4) && ((uint)uVar2 < *(uint *)param_3))));
iVar4 = *(int *)(param_1 + 0x18);
LAB_000613bc:
return 0 < iVar4;
}
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.