CKeyValuesDumpContextAsDevMsg::KvBeginKey
0x00040cc0 · 137 bytes · __thiscall
_ZN29CKeyValuesDumpContextAsDevMsg10KvBeginKeyEP9KeyValuesi
Decompiled
undefined (3 params)
/* CKeyValuesDumpContextAsDevMsg::KvBeginKey(KeyValues*, int) */
undefined4 __thiscall
CKeyValuesDumpContextAsDevMsg::KvBeginKey
(CKeyValuesDumpContextAsDevMsg *this,KeyValues *param_1,int param_2)
{
char cVar1;
int iVar2;
undefined4 uVar3;
if (KvBeginKey(KeyValues*,int)::r_developer == '\0') {
iVar2 = __cxa_guard_acquire(&KvBeginKey(KeyValues*,int)::r_developer);
if (iVar2 != 0) {
/* try { // try from 00040d3f to 00040d43 has its CatchHandler @ 00040d52 */
ConVarRef::ConVarRef((ConVarRef *)&KvBeginKey(KeyValues*,int)::r_developer,"developer");
__cxa_guard_release(&KvBeginKey(KeyValues*,int)::r_developer);
}
}
cVar1 = ConVarRef::IsValid((ConVarRef *)&KvBeginKey(KeyValues*,int)::r_developer);
if ((cVar1 != '\0') &&
(*(int *)(KvBeginKey(KeyValues*,int)::r_developer._4_4_ + 0x30) < *(int *)(this + 4))) {
return 0;
}
uVar3 = IKeyValuesDumpContextAsText::KvBeginKey
((IKeyValuesDumpContextAsText *)this,param_1,param_2);
return uVar3;
}
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.