CNetworkStringTableContainer::DirectUpdate
0x001a5460 · 532 bytes · __thiscall
_ZN28CNetworkStringTableContainer12DirectUpdateEi
Decompiled
undefined (2 params)
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* CNetworkStringTableContainer::DirectUpdate(int) */
void __thiscall
CNetworkStringTableContainer::DirectUpdate(CNetworkStringTableContainer *this,int param_1)
{
uint *puVar1;
char cVar2;
CNetworkStringTable *this_00;
int iVar3;
int iVar4;
undefined4 local_34;
undefined4 local_30;
undefined4 local_28;
undefined4 local_24;
int local_20;
local_34 = 0;
local_30 = 0;
if (_Plat_SetBenchmarkMode == 0) {
local_20 = 0;
}
else {
(**(code **)(_Plat_SetBenchmarkMode + 0x50))
(_Plat_SetBenchmarkMode,&local_34,0,0,0,0,"/data/src/engine/./networkstringtable.cpp",
0x7e5,&DirectUpdate(int)::tm_fmt,"(%s)%s","Networking",
"CNetworkStringTableContainer::DirectUpdate");
local_20 = _Plat_SetBenchmarkMode;
}
iVar4 = _DAT_0040b9d4;
local_28 = local_34;
local_24 = local_30;
/* try { // try from 001a55be to 001a561e has its CatchHandler @ 001a569e */
if (((_DAT_0040b028 != 0) || (DAT_0040b02c == '\0')) &&
(iVar3 = ThreadGetCurrentId(), iVar4 == iVar3)) {
if ((char *)*_DAT_0040b030 != "CNetworkStringTableContainer::DirectUpdate") {
_DAT_0040b030 =
(int *)CVProfNode::GetSubNode((char *)_DAT_0040b030,0x2b995c,(char *)0x0,0x2a6193);
}
puVar1 = (uint *)(_DAT_0040b0bc + 4 + _DAT_0040b030[0x1c] * 8);
*puVar1 = *puVar1 | 4;
CVProfNode::EnterScope();
DAT_0040b02c = '\0';
}
iVar4 = 0;
if (0 < *(int *)(this + 0x1c)) {
do {
while( true ) {
/* try { // try from 001a5531 to 001a5557 has its CatchHandler @ 001a567d */
this_00 = (CNetworkStringTable *)(**(code **)(*(int *)this + 0x14))(this,iVar4);
cVar2 = (**(code **)(*(int *)this_00 + 0x20))(this_00,param_1);
if (cVar2 == '\0') break;
CNetworkStringTable::UpdateMirrorTable(this_00,param_1);
iVar4 = iVar4 + 1;
if (*(int *)(this + 0x1c) <= iVar4) goto LAB_001a5560;
}
iVar4 = iVar4 + 1;
} while (iVar4 < *(int *)(this + 0x1c));
}
LAB_001a5560:
iVar4 = _DAT_0040b9d4;
if (((DAT_0040b02c == '\0') || (_DAT_0040b028 != 0)) &&
(iVar3 = ThreadGetCurrentId(), iVar4 == iVar3)) {
cVar2 = CVProfNode::ExitScope();
if (cVar2 != '\0') {
_DAT_0040b030 = (int *)_DAT_0040b030[0x19];
}
DAT_0040b02c = _DAT_0040b030 == (int *)0x40b034;
}
if (local_20 != 0) {
(**(code **)(local_20 + 0x54))(local_20,local_28,local_24,0,0,0);
}
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.