CNetworkStringTableDictionaryManager::LoadDictionaryFile
0x001a3250 · 261 bytes · __thiscall
_ZN36CNetworkStringTableDictionaryManager18LoadDictionaryFileER10CUtlBufferPKc
Decompiled
undefined (3 params)
/* CNetworkStringTableDictionaryManager::LoadDictionaryFile(CUtlBuffer&, char const*) */
undefined4 __thiscall
CNetworkStringTableDictionaryManager::LoadDictionaryFile
(CNetworkStringTableDictionaryManager *this,CUtlBuffer *param_1,char *param_2)
{
int iVar1;
undefined4 uVar2;
iVar1 = g_pFileSystem;
this[0x4d] = (CNetworkStringTableDictionaryManager)0x0;
uVar2 = (**(code **)(*(int *)(iVar1 + 4) + 0x38))
(iVar1 + 4,"stringtable_dictionary.dct",&DAT_002b946f,param_1,0,0,0);
if ((char)uVar2 != '\0') {
return uVar2;
}
uVar2 = (**(code **)(*(int *)(g_pFileSystem + 4) + 0x38))
(g_pFileSystem + 4,"stringtable_dictionary_fallback.dct",&DAT_002b946f,param_1,0
,0,0);
if ((char)uVar2 == '\0') {
Warning("#######################################\n");
Warning("Map %s missing stringtable dictionary, don\'t ship this way!!!\n",param_2);
Warning("#######################################\n");
return uVar2;
}
Warning("#######################################\n");
Warning("Map %s using default stringtable dictionary, don\'t ship this way!!!\n",param_2);
Warning("#######################################\n");
this[0x4d] = (CNetworkStringTableDictionaryManager)0x1;
return uVar2;
}
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.