DataMapInit<CBubbling>
0x0066f350 · 554 bytes · __cdecl
_Z11DataMapInitI9CBubblingEP9datamap_tPT_
Decompiled
datamap_t * (1 param)
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* datamap_t* DataMapInit<CBubbling>(CBubbling*) */
datamap_t * DataMapInit<CBubbling>(CBubbling *param_1)
{
int iVar1;
char *__dest;
char *pcVar2;
int iVar3;
int iVar4;
if ((DataMapInit<CBubbling>(CBubbling*)::nameHolder == '\0') &&
(iVar1 = __cxa_guard_acquire(&DataMapInit<CBubbling>(CBubbling*)::nameHolder), iVar1 != 0)) {
DataMapInit<CBubbling>(CBubbling*)::nameHolder = "CBubbling";
DAT_00fc86d0 = (void *)0x0;
DAT_00fc86d4 = 0;
DAT_00fc86d8 = 0;
DAT_00fc86dc = 0;
_DAT_00fc86e0 = (void *)0x0;
_DAT_00fc86cc = 9;
__cxa_guard_release(&DataMapInit<CBubbling>(CBubbling*)::nameHolder);
__cxa_atexit(CDatadescGeneratedNameHolder::~CDatadescGeneratedNameHolder,
&DataMapInit<CBubbling>(CBubbling*)::nameHolder,&__dso_handle);
}
CBubbling::m_DataMap._12_4_ = CBaseEntity::m_DataMap;
if ((DataMapInit<CBubbling>(CBubbling*)::dataDesc != '\0') ||
(iVar1 = __cxa_guard_acquire(&DataMapInit<CBubbling>(CBubbling*)::dataDesc), iVar1 == 0))
goto LAB_0066f379;
/* try { // try from 0066f3bb to 0066f4e9 has its CatchHandler @ 0066f599 */
__dest = operator_new__(_DAT_00fc86cc + 10);
pcVar2 = stpcpy(__dest,DataMapInit<CBubbling>(CBubbling*)::nameHolder);
builtin_strncpy(pcVar2,"FizzThink",10);
iVar3 = DAT_00fc86dc;
iVar1 = DAT_00fc86dc + 1;
if ((DAT_00fc86d4 < iVar1) && (-1 < DAT_00fc86d8)) {
if (DAT_00fc86d8 == 0) {
if (DAT_00fc86d4 == 0) {
if (iVar1 < 9) {
DAT_00fc86d4 = 8;
goto LAB_0066f52f;
}
DAT_00fc86d4 = 8;
}
do {
DAT_00fc86d4 = DAT_00fc86d4 * 2;
} while (DAT_00fc86d4 < iVar1);
}
else {
for (DAT_00fc86d4 = (DAT_00fc86dc / DAT_00fc86d8 + 1) * DAT_00fc86d8; DAT_00fc86d4 < iVar1;
DAT_00fc86d4 = (DAT_00fc86d4 + iVar1) / 2) {
}
}
LAB_0066f52f:
if (DAT_00fc86d0 == (void *)0x0) {
DAT_00fc86d0 = malloc(DAT_00fc86d4 << 2);
}
else {
DAT_00fc86d0 = realloc(DAT_00fc86d0,DAT_00fc86d4 << 2);
iVar1 = DAT_00fc86dc + 1;
}
}
iVar4 = iVar3 * 4;
iVar3 = (iVar1 - iVar3) + -1;
DAT_00fc86dc = iVar1;
_DAT_00fc86e0 = DAT_00fc86d0;
if (0 < iVar3) {
_V_memmove((void *)((int)DAT_00fc86d0 + iVar4 + 4),(void *)((int)DAT_00fc86d0 + iVar4),iVar3 * 4
);
}
if ((undefined4 *)(iVar4 + (int)DAT_00fc86d0) != (undefined4 *)0x0) {
*(undefined4 *)(iVar4 + (int)DAT_00fc86d0) = __dest;
}
DataMapInit<CBubbling>(CBubbling*)::dataDesc._324_4_ = __dest;
__cxa_guard_release(&DataMapInit<CBubbling>(CBubbling*)::dataDesc);
LAB_0066f379:
CBubbling::m_DataMap._4_4_ = 0xb;
CBubbling::m_DataMap._0_4_ = 0xf2f680;
return (datamap_t *)CBubbling::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.