DataMapInit<CCommentarySystem>
0x00649800 · 370 bytes · __cdecl
_Z11DataMapInitI17CCommentarySystemEP9datamap_tPT_
Decompiled
datamap_t * (1 param)
/* datamap_t* DataMapInit<CCommentarySystem>(CCommentarySystem*) */
datamap_t * DataMapInit<CCommentarySystem>(CCommentarySystem *param_1)
{
int iVar1;
if (DataMapInit<CCommentarySystem>(CCommentarySystem*)::nameHolder == '\0') {
iVar1 = __cxa_guard_acquire(&DataMapInit<CCommentarySystem>(CCommentarySystem*)::nameHolder);
if (iVar1 != 0) {
DataMapInit<CCommentarySystem>(CCommentarySystem*)::nameHolder._0_4_ =
s_CCommentarySystem_00c6aa21;
DataMapInit<CCommentarySystem>(CCommentarySystem*)::nameHolder._8_4_ = 0;
DataMapInit<CCommentarySystem>(CCommentarySystem*)::nameHolder._12_4_ = 0;
DataMapInit<CCommentarySystem>(CCommentarySystem*)::nameHolder._16_4_ = 0;
DataMapInit<CCommentarySystem>(CCommentarySystem*)::nameHolder._20_4_ = 0;
DataMapInit<CCommentarySystem>(CCommentarySystem*)::nameHolder._24_4_ = 0;
DataMapInit<CCommentarySystem>(CCommentarySystem*)::nameHolder._4_4_ = 0x11;
__cxa_guard_release(&DataMapInit<CCommentarySystem>(CCommentarySystem*)::nameHolder);
__cxa_atexit(CDatadescGeneratedNameHolder::~CDatadescGeneratedNameHolder,
DataMapInit<CCommentarySystem>(CCommentarySystem*)::nameHolder,&__dso_handle);
}
}
CCommentarySystem::m_DataMap._12_4_ = 0;
if (DataMapInit<CCommentarySystem>(CCommentarySystem*)::dataDesc == '\0') {
iVar1 = __cxa_guard_acquire(&DataMapInit<CCommentarySystem>(CCommentarySystem*)::dataDesc);
if (iVar1 != 0) {
if (CUtlVectorDataopsInstantiator<10>::
GetDataOps<CUtlVector<modifiedconvars_t,CUtlMemory<modifiedconvars_t,int>>>(CUtlVector<modifiedconvars_t,CUtlMemory<modifiedconvars_t,int>>*)
::ops == '\0') {
iVar1 = __cxa_guard_acquire(&CUtlVectorDataopsInstantiator<10>::
GetDataOps<CUtlVector<modifiedconvars_t,CUtlMemory<modifiedconvars_t,int>>>(CUtlVector<modifiedconvars_t,CUtlMemory<modifiedconvars_t,int>>*)
::ops);
if (iVar1 != 0) {
CUtlVectorDataopsInstantiator<10>::
GetDataOps<CUtlVector<modifiedconvars_t,CUtlMemory<modifiedconvars_t,int>>>(CUtlVector<modifiedconvars_t,CUtlMemory<modifiedconvars_t,int>>*)
::ops = &PTR_Save_00c6bed8;
__cxa_guard_release(&CUtlVectorDataopsInstantiator<10>::
GetDataOps<CUtlVector<modifiedconvars_t,CUtlMemory<modifiedconvars_t,int>>>(CUtlVector<modifiedconvars_t,CUtlMemory<modifiedconvars_t,int>>*)
::ops);
}
}
DataMapInit<CCommentarySystem>(CCommentarySystem*)::dataDesc._276_4_ =
&CUtlVectorDataopsInstantiator<10>::
GetDataOps<CUtlVector<modifiedconvars_t,CUtlMemory<modifiedconvars_t,int>>>(CUtlVector<modifiedconvars_t,CUtlMemory<modifiedconvars_t,int>>*)
::ops;
if (CUtlVectorDataopsInstantiator<13>::
GetDataOps<CUtlVector<CHandle<CBaseEntity>,CUtlMemory<CHandle<CBaseEntity>,int>>>(CUtlVector<CHandle<CBaseEntity>,CUtlMemory<CHandle<CBaseEntity>,int>>*)
::ops == '\0') {
iVar1 = __cxa_guard_acquire(&CUtlVectorDataopsInstantiator<13>::
GetDataOps<CUtlVector<CHandle<CBaseEntity>,CUtlMemory<CHandle<CBaseEntity>,int>>>(CUtlVector<CHandle<CBaseEntity>,CUtlMemory<CHandle<CBaseEntity>,int>>*)
::ops);
if (iVar1 != 0) {
CUtlVectorDataopsInstantiator<13>::
GetDataOps<CUtlVector<CHandle<CBaseEntity>,CUtlMemory<CHandle<CBaseEntity>,int>>>(CUtlVector<CHandle<CBaseEntity>,CUtlMemory<CHandle<CBaseEntity>,int>>*)
::ops = &PTR_Save_00c5bd28;
__cxa_guard_release(&CUtlVectorDataopsInstantiator<13>::
GetDataOps<CUtlVector<CHandle<CBaseEntity>,CUtlMemory<CHandle<CBaseEntity>,int>>>(CUtlVector<CHandle<CBaseEntity>,CUtlMemory<CHandle<CBaseEntity>,int>>*)
::ops);
}
}
DataMapInit<CCommentarySystem>(CCommentarySystem*)::dataDesc._340_4_ =
&CUtlVectorDataopsInstantiator<13>::
GetDataOps<CUtlVector<CHandle<CBaseEntity>,CUtlMemory<CHandle<CBaseEntity>,int>>>(CUtlVector<CHandle<CBaseEntity>,CUtlMemory<CHandle<CBaseEntity>,int>>*)
::ops;
__cxa_guard_release(&DataMapInit<CCommentarySystem>(CCommentarySystem*)::dataDesc);
}
}
CCommentarySystem::m_DataMap._4_4_ = 9;
CCommentarySystem::m_DataMap._0_4_ = 0xf2b640;
return (datamap_t *)CCommentarySystem::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.