DataMapInit<CFishPool>
0x006a5ed0 · 413 bytes · __cdecl
_Z11DataMapInitI9CFishPoolEP9datamap_tPT_
Decompiled
datamap_t * (1 param)
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* datamap_t* DataMapInit<CFishPool>(CFishPool*) */
datamap_t * DataMapInit<CFishPool>(CFishPool *param_1)
{
char *pcVar1;
int iVar2;
size_t sVar3;
char *local_10 [2];
if (DataMapInit<CFishPool>(CFishPool*)::nameHolder == '\0') {
iVar2 = __cxa_guard_acquire(&DataMapInit<CFishPool>(CFishPool*)::nameHolder);
if (iVar2 != 0) {
DataMapInit<CFishPool>(CFishPool*)::nameHolder = "CFishPool";
_DAT_00fdf0b0 = 0;
_DAT_00fdf0b4 = 0;
_DAT_00fdf0b8 = 0;
DAT_00fdf0bc = 0;
_DAT_00fdf0c0 = 0;
DAT_00fdf0ac = 9;
__cxa_guard_release(&DataMapInit<CFishPool>(CFishPool*)::nameHolder);
__cxa_atexit(CDatadescGeneratedNameHolder::~CDatadescGeneratedNameHolder,
&DataMapInit<CFishPool>(CFishPool*)::nameHolder,&__dso_handle);
}
}
CFishPool::m_DataMap._12_4_ = CBaseEntity::m_DataMap;
if (DataMapInit<CFishPool>(CFishPool*)::dataDesc == '\0') {
iVar2 = __cxa_guard_acquire(&DataMapInit<CFishPool>(CFishPool*)::dataDesc);
if (iVar2 != 0) {
if (CUtlVectorDataopsInstantiator<13>::
GetDataOps<CUtlVector<CHandle<CFish>,CUtlMemory<CHandle<CFish>,int>>>(CUtlVector<CHandle<CFish>,CUtlMemory<CHandle<CFish>,int>>*)
::ops == '\0') {
iVar2 = __cxa_guard_acquire(&CUtlVectorDataopsInstantiator<13>::
GetDataOps<CUtlVector<CHandle<CFish>,CUtlMemory<CHandle<CFish>,int>>>(CUtlVector<CHandle<CFish>,CUtlMemory<CHandle<CFish>,int>>*)
::ops);
if (iVar2 != 0) {
CUtlVectorDataopsInstantiator<13>::
GetDataOps<CUtlVector<CHandle<CFish>,CUtlMemory<CHandle<CFish>,int>>>(CUtlVector<CHandle<CFish>,CUtlMemory<CHandle<CFish>,int>>*)
::ops = &PTR_Save_00c87d10;
__cxa_guard_release(&CUtlVectorDataopsInstantiator<13>::
GetDataOps<CUtlVector<CHandle<CFish>,CUtlMemory<CHandle<CFish>,int>>>(CUtlVector<CHandle<CFish>,CUtlMemory<CHandle<CFish>,int>>*)
::ops);
}
}
DataMapInit<CFishPool>(CFishPool*)::dataDesc._404_4_ =
&CUtlVectorDataopsInstantiator<13>::
GetDataOps<CUtlVector<CHandle<CFish>,CUtlMemory<CHandle<CFish>,int>>>(CUtlVector<CHandle<CFish>,CUtlMemory<CHandle<CFish>,int>>*)
::ops;
/* try { // try from 006a5f52 to 006a5fa7 has its CatchHandler @ 006a607f */
local_10[0] = operator_new__(DAT_00fdf0ac + 7);
strcpy(local_10[0],DataMapInit<CFishPool>(CFishPool*)::nameHolder);
pcVar1 = local_10[0];
sVar3 = strlen(local_10[0]);
builtin_strncpy(pcVar1 + sVar3,"Update",7);
CUtlVector<char*,CUtlMemory<char*,int>>::InsertBefore
((CUtlVector<char*,CUtlMemory<char*,int>> *)&DAT_00fdf0b0,DAT_00fdf0bc,local_10);
DataMapInit<CFishPool>(CFishPool*)::dataDesc._452_4_ = local_10[0];
__cxa_guard_release(&DataMapInit<CFishPool>(CFishPool*)::dataDesc);
}
}
CFishPool::m_DataMap._4_4_ = 7;
CFishPool::m_DataMap._0_4_ = 0xf36f00;
return (datamap_t *)CFishPool::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.