DataMapInit<CKeepUpright>
0x007a4f90 · 244 bytes · __cdecl
_Z11DataMapInitI12CKeepUprightEP9datamap_tPT_
Decompiled
datamap_t * (1 param)
/* datamap_t* DataMapInit<CKeepUpright>(CKeepUpright*) */
datamap_t * DataMapInit<CKeepUpright>(CKeepUpright *param_1)
{
int iVar1;
if (DataMapInit<CKeepUpright>(CKeepUpright*)::nameHolder == '\0') {
iVar1 = __cxa_guard_acquire(&DataMapInit<CKeepUpright>(CKeepUpright*)::nameHolder);
if (iVar1 != 0) {
DataMapInit<CKeepUpright>(CKeepUpright*)::nameHolder._0_4_ = s_CKeepUpright_00cb6a7b;
DataMapInit<CKeepUpright>(CKeepUpright*)::nameHolder._8_4_ = 0;
DataMapInit<CKeepUpright>(CKeepUpright*)::nameHolder._12_4_ = 0;
DataMapInit<CKeepUpright>(CKeepUpright*)::nameHolder._16_4_ = 0;
DataMapInit<CKeepUpright>(CKeepUpright*)::nameHolder._20_4_ = 0;
DataMapInit<CKeepUpright>(CKeepUpright*)::nameHolder._24_4_ = 0;
DataMapInit<CKeepUpright>(CKeepUpright*)::nameHolder._4_4_ = 0xc;
__cxa_guard_release(&DataMapInit<CKeepUpright>(CKeepUpright*)::nameHolder);
__cxa_atexit(CDatadescGeneratedNameHolder::~CDatadescGeneratedNameHolder,
DataMapInit<CKeepUpright>(CKeepUpright*)::nameHolder,&__dso_handle);
}
}
CKeepUpright::m_DataMap._12_4_ = CBaseEntity::m_DataMap;
if (DataMapInit<CKeepUpright>(CKeepUpright*)::dataDesc == '\0') {
iVar1 = __cxa_guard_acquire(&DataMapInit<CKeepUpright>(CKeepUpright*)::dataDesc);
if (iVar1 != 0) {
/* try { // try from 007a4fef to 007a4ff3 has its CatchHandler @ 007a5093 */
DataMapInit<CKeepUpright>(CKeepUpright*)::dataDesc._212_4_ = GetPhysObjSaveRestoreOps(8);
__cxa_guard_release(&DataMapInit<CKeepUpright>(CKeepUpright*)::dataDesc);
}
}
CKeepUpright::m_DataMap._4_4_ = 0xb;
CKeepUpright::m_DataMap._0_4_ = 0xf4ada0;
return (datamap_t *)CKeepUpright::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.