CUtlVectorDataOps<CUtlVector<magnetted_objects_t,CUtlMemory<magnetted_objects_t,int>>,10>::Restore
0x007a2e30 · 264 bytes · __thiscall
_ZN17CUtlVectorDataOpsI10CUtlVectorI19magnetted_objects_t10CUtlMemoryIS1_iEELi10EE7RestoreERK22SaveRestoreFieldInfo_tP8IRestore
Decompiled
undefined (3 params)
/* CUtlVectorDataOps<CUtlVector<magnetted_objects_t, CUtlMemory<magnetted_objects_t, int> >,
10>::Restore(SaveRestoreFieldInfo_t const&, IRestore*) */
void __thiscall
CUtlVectorDataOps<CUtlVector<magnetted_objects_t,CUtlMemory<magnetted_objects_t,int>>,10>::Restore
(CUtlVectorDataOps<CUtlVector<magnetted_objects_t,CUtlMemory<magnetted_objects_t,int>>,10>
*this,SaveRestoreFieldInfo_t *param_1,IRestore *param_2)
{
int iVar1;
CUtlVector<magnetted_objects_t,CUtlMemory<magnetted_objects_t,int>> *this_00;
uint uVar2;
int iVar3;
int iVar4;
undefined **ppuVar5;
undefined **local_74 [6];
undefined *local_5c [3];
undefined2 local_50;
undefined2 local_4e;
undefined1 *local_3c;
undefined4 local_38;
uVar2 = 0;
ppuVar5 = local_5c;
for (iVar4 = 0x10; iVar4 != 0; iVar4 = iVar4 + -1) {
*ppuVar5 = (undefined *)0x0;
ppuVar5 = ppuVar5 + 1;
}
local_5c[0] = (undefined *)0xa;
local_5c[1] = &DAT_00c1c557;
local_50 = 1;
local_4e = 2;
local_38 = 0xffffffff;
local_3c = magnetted_objects_t::m_DataMap;
do {
*(undefined4 *)((int)local_74 + uVar2) = 0;
uVar2 = uVar2 + 4;
} while (uVar2 < 0x18);
local_74[1] = (undefined **)0x1;
local_74[2] = (undefined **)&DAT_00c1c55d;
this_00 = *(CUtlVector<magnetted_objects_t,CUtlMemory<magnetted_objects_t,int>> **)param_1;
local_74[0] = local_5c;
iVar4 = (**(code **)(*(int *)param_2 + 0x3c))(param_2);
*(undefined4 *)(this_00 + 0xc) = 0;
if (iVar4 != 0) {
CUtlVector<magnetted_objects_t,CUtlMemory<magnetted_objects_t,int>>::GrowVector(this_00,iVar4);
CUtlVector<magnetted_objects_t,CUtlMemory<magnetted_objects_t,int>>::ShiftElementsRight
(this_00,0,iVar4);
if (0 < iVar4) {
iVar3 = 0;
do {
iVar1 = *(int *)this_00 + iVar3 * 8;
if (iVar1 != 0) {
*(undefined4 *)(iVar1 + 4) = 0xffffffff;
}
iVar3 = iVar3 + 1;
} while (iVar3 != iVar4);
local_38 = 0;
iVar3 = 0;
do {
iVar1 = iVar3 * 8;
iVar3 = iVar3 + 1;
(**(code **)(*(int *)param_2 + 8))(param_2,*(int *)this_00 + iVar1,local_74);
} while (iVar3 != iVar4);
return;
}
}
return;
}
SourceMod gamedata
paste intoaddons/sourcemod/gamedata/<your_plugin>.txt
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.
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.