CBaseClientState::ProcessUpdateStringTable
0x000ff190 · 630 bytes · __thiscall
_ZN16CBaseClientState24ProcessUpdateStringTableEP21SVC_UpdateStringTable
Decompiled
undefined (2 params)
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* CBaseClientState::ProcessUpdateStringTable(SVC_UpdateStringTable*) */
bool __thiscall
CBaseClientState::ProcessUpdateStringTable(CBaseClientState *this,SVC_UpdateStringTable *param_1)
{
int iVar1;
int *piVar2;
char cVar3;
CNetworkStringTable *this_00;
int iVar4;
int iVar5;
bool bVar6;
undefined4 local_24;
undefined4 local_20;
undefined4 local_18;
undefined4 local_14;
int local_10;
local_24 = 0;
local_20 = 0;
if (_exit == 0) {
local_10 = 0;
}
else {
(**(code **)(_exit + 0x50))
(_exit,&local_24,0,0,0,0,"/data/src/engine/./baseclientstate.cpp",0x7aa,
&ProcessUpdateStringTable(SVC_UpdateStringTable*)::tm_fmt,"(%s)%s","Unaccounted",
"ProcessUpdateStringTable");
local_10 = _exit;
}
iVar5 = _DAT_0040b9d4;
local_18 = local_24;
local_14 = local_20;
/* try { // try from 000ff36e to 000ff3bc has its CatchHandler @ 000ff417 */
if (((_DAT_0040b028 == 0) && (DAT_0040b02c != '\0')) ||
(iVar4 = ThreadGetCurrentId(), iVar5 != iVar4)) {
iVar5 = *(int *)(param_1 + 0x78);
}
else {
if ((char *)*_DAT_0040b030 != "ProcessUpdateStringTable") {
_DAT_0040b030 =
(int *)CVProfNode::GetSubNode((char *)_DAT_0040b030,0x2a6d62,&DAT_00000001,0x2a054b);
}
CVProfNode::EnterScope();
DAT_0040b02c = '\0';
iVar5 = *(int *)(param_1 + 0x78);
}
if (iVar5 == 0) {
iVar5 = 0;
piVar2 = *(int **)(this + 0x49d4);
}
else {
iVar5 = (((uint)(*(int *)(param_1 + 0x70) - iVar5) >> 2) * 0x20 - *(int *)(param_1 + 0x6c)) +
(*(uint *)(param_1 + 100) & 3) * 8;
if (*(int *)(param_1 + 0x60) < iVar5) {
iVar5 = *(int *)(param_1 + 0x60);
}
piVar2 = *(int **)(this + 0x49d4);
}
if (piVar2 == (int *)0x0) {
/* try { // try from 000ff3ef to 000ff3f3 has its CatchHandler @ 000ff42c */
Warning("m_StringTableContainer is NULL in CBaseClientState::ProcessUpdateStringTable\n");
bVar6 = true;
}
else {
/* try { // try from 000ff28a to 000ff2a2 has its CatchHandler @ 000ff42c */
this_00 = (CNetworkStringTable *)
(**(code **)(*piVar2 + 0x14))(piVar2,*(undefined4 *)(param_1 + 0x4c));
CNetworkStringTable::ParseUpdate(this_00,(bf_read *)(param_1 + 0x58),*(int *)(param_1 + 0x50));
if (*(int *)(param_1 + 0x78) == 0) {
iVar4 = 0;
}
else {
iVar1 = (((uint)(*(int *)(param_1 + 0x70) - *(int *)(param_1 + 0x78)) >> 2) * 0x20 -
*(int *)(param_1 + 0x6c)) + (*(uint *)(param_1 + 100) & 3) * 8;
iVar4 = *(int *)(param_1 + 0x60);
if (iVar1 <= *(int *)(param_1 + 0x60)) {
iVar4 = iVar1;
}
}
bVar6 = iVar4 - iVar5 == *(int *)(param_1 + 0x54);
}
iVar5 = _DAT_0040b9d4;
if (((DAT_0040b02c == '\0') || (_DAT_0040b028 != 0)) &&
(iVar4 = ThreadGetCurrentId(), iVar5 == iVar4)) {
cVar3 = CVProfNode::ExitScope();
if (cVar3 != '\0') {
_DAT_0040b030 = (int *)_DAT_0040b030[0x19];
}
DAT_0040b02c = _DAT_0040b030 == (int *)0x40b034;
}
if (local_10 != 0) {
(**(code **)(local_10 + 0x54))(local_10,local_18,local_14,0,0,0);
}
return bVar6;
}
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.