CParticleSystemMgr::ReadParticleConfigFile
0x00bd3b80 · 315 bytes · __thiscall
_ZN18CParticleSystemMgr22ReadParticleConfigFileEPKcbb
Decompiled
undefined (4 params)
/* CParticleSystemMgr::ReadParticleConfigFile(char const*, bool, bool) */
undefined4 __thiscall
CParticleSystemMgr::ReadParticleConfigFile
(CParticleSystemMgr *this,char *param_1,bool param_2,bool param_3)
{
undefined4 uVar1;
int in_GS_OFFSET;
bool local_15d;
CUtlBuffer local_15c [56];
char local_124 [260];
int local_20;
local_15d = param_2;
local_20 = *(int *)(in_GS_OFFSET + 0x14);
if (*param_1 == '!') {
param_1 = param_1 + 1;
local_15d = true;
}
V_StripExtension(param_1,local_124,0x104);
V_GetFileExtension(param_1);
CUtlBuffer::CUtlBuffer(local_15c,0,0,0);
/* try { // try from 00bd3c3d to 00bd3ca7 has its CatchHandler @ 00bd3cc4 */
uVar1 = (**(code **)(*(int *)(g_pFullFileSystem + 4) + 0x38))
(g_pFullFileSystem + 4,param_1,"GAME",local_15c,0,0,0);
if ((char)uVar1 == '\0') {
Warning("Particles: Missing \'%s\'\n",param_1);
}
else {
uVar1 = ReadParticleDefinitions(this,local_15c,param_1,local_15d,param_3);
}
CUtlMemory<unsigned_char,int>::Purge((CUtlMemory<unsigned_char,int> *)local_15c);
if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
return uVar1;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
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.