GCSDK::CJobMgr::RecordOrphanedMessage
0x00062200 · 401 bytes · __cdecl
_ZN5GCSDK7CJobMgr21RecordOrphanedMessageEjy
Decompiled
undefined (2 params)
/* GCSDK::CJobMgr::RecordOrphanedMessage(unsigned int, unsigned long long) */
void GCSDK::CJobMgr::RecordOrphanedMessage(uint param_1,ulonglong param_2)
{
int *piVar1;
ushort uVar2;
char cVar3;
int iVar4;
int iVar5;
uint uVar6;
Node_t *local_30;
undefined4 local_24;
undefined4 local_20;
uVar6 = (uint)*(ushort *)(param_1 + 300);
local_24 = (undefined4)param_2;
if (*(ushort *)(param_1 + 300) != 0xffff) {
iVar4 = *(int *)(param_1 + 0x120);
do {
while( true ) {
iVar5 = uVar6 * 0x10;
cVar3 = (**(code **)(param_1 + 0x11c))(&local_24,iVar4 + 8 + iVar5);
if (cVar3 != '\0') break;
cVar3 = (**(code **)(param_1 + 0x11c))(*(int *)(param_1 + 0x120) + iVar5 + 8,&local_24);
if (cVar3 == '\0') {
if (uVar6 != 0xffff) goto LAB_0006238c;
goto LAB_000622b3;
}
if ((CUtlRBTree<CUtlMap<unsigned_int,int,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,int,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&CUtlRBTree<CUtlMap<unsigned_int,int,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,int,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
CUtlRBTree<CUtlMap<unsigned_int,int,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,int,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d2852 = 0xffff;
DAT_000d2854 = 0xffff;
__cxa_guard_release(&CUtlRBTree<CUtlMap<unsigned_int,int,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,int,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::Links(unsigned_short)::s_Sentinel);
}
iVar4 = *(int *)(param_1 + 0x120);
uVar2 = *(ushort *)(iVar4 + 2 + iVar5);
uVar6 = (uint)uVar2;
if (uVar2 == 0xffff) goto LAB_000622b3;
}
if ((CUtlRBTree<CUtlMap<unsigned_int,int,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,int,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&CUtlRBTree<CUtlMap<unsigned_int,int,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,int,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
DAT_000d2852 = 0xffff;
CUtlRBTree<CUtlMap<unsigned_int,int,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,int,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_000d2854 = 0xffff;
__cxa_guard_release(&CUtlRBTree<CUtlMap<unsigned_int,int,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,int,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::Links(unsigned_short)::s_Sentinel);
}
iVar4 = *(int *)(param_1 + 0x120);
uVar6 = (uint)*(ushort *)(iVar4 + iVar5);
} while (*(ushort *)(iVar4 + iVar5) != 0xffff);
}
LAB_000622b3:
local_30 = (Node_t *)&local_24;
local_20 = 0;
local_24 = (undefined4)param_2;
uVar6 = CUtlRBTree<CUtlMap<unsigned_int,int,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,int,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::Insert((CUtlRBTree<CUtlMap<unsigned_int,int,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,int,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
*)(param_1 + 0x11c),local_30);
uVar6 = uVar6 & 0xffff;
LAB_0006238c:
piVar1 = (int *)(uVar6 * 0x10 + *(int *)(param_1 + 0x120) + 0xc);
*piVar1 = *piVar1 + 1;
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.