DataMapInit<CEventAction>
0x0063b700 · 183 bytes · __cdecl
_Z11DataMapInitI12CEventActionEP9datamap_tPT_
Decompiled
datamap_t * (1 param)
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* datamap_t* DataMapInit<CEventAction>(CEventAction*) */
datamap_t * DataMapInit<CEventAction>(CEventAction *param_1)
{
int iVar1;
if (DataMapInit<CEventAction>(CEventAction*)::nameHolder == '\0') {
iVar1 = __cxa_guard_acquire(&DataMapInit<CEventAction>(CEventAction*)::nameHolder);
if (iVar1 != 0) {
DataMapInit<CEventAction>(CEventAction*)::nameHolder._0_4_ = (int)"=CEventAction" + 1;
DataMapInit<CEventAction>(CEventAction*)::nameHolder._8_4_ = 0;
DataMapInit<CEventAction>(CEventAction*)::nameHolder._12_4_ = 0;
DataMapInit<CEventAction>(CEventAction*)::nameHolder._16_4_ = 0;
DataMapInit<CEventAction>(CEventAction*)::nameHolder._20_4_ = 0;
DataMapInit<CEventAction>(CEventAction*)::nameHolder._24_4_ = 0;
DataMapInit<CEventAction>(CEventAction*)::nameHolder._4_4_ = 0xc;
__cxa_guard_release(&DataMapInit<CEventAction>(CEventAction*)::nameHolder);
__cxa_atexit(CDatadescGeneratedNameHolder::~CDatadescGeneratedNameHolder,
DataMapInit<CEventAction>(CEventAction*)::nameHolder,&__dso_handle);
}
}
_DAT_00f2a8c0 = 0;
DAT_00f2a8b8 = 6;
CEventAction::m_DataMap = 0xf2a400;
return (datamap_t *)&CEventAction::m_DataMap;
}
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.