CResponseSystemSaveRestoreOps::Restore
0x005bf040 · 587 bytes · __thiscall
_ZN29CResponseSystemSaveRestoreOps7RestoreERK22SaveRestoreFieldInfo_tP8IRestore
Decompiled
undefined (3 params)
/* CResponseSystemSaveRestoreOps::Restore(SaveRestoreFieldInfo_t const&, IRestore*) */
void __thiscall
CResponseSystemSaveRestoreOps::Restore
(CResponseSystemSaveRestoreOps *this,SaveRestoreFieldInfo_t *param_1,IRestore *param_2)
{
undefined4 *puVar1;
ushort uVar2;
short sVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
int in_GS_OFFSET;
int local_274;
int local_270;
char local_260 [32];
char local_240 [32];
char local_220 [256];
char local_120 [256];
int local_20;
local_20 = *(int *)(in_GS_OFFSET + 0x14);
puVar1 = (undefined4 *)**(undefined4 **)param_1;
if (((puVar1 != (undefined4 *)0x0) && (puVar1 != &defaultresponsesytem)) &&
(iVar4 = (**(code **)(*(int *)param_2 + 0x3c))(param_2), 0 < iVar4)) {
local_274 = 0;
do {
(**(code **)(*(int *)param_2 + 0x18))(param_2,local_260);
iVar5 = _V_stricmp(local_260,"ResponseGroup");
if (iVar5 == 0) {
(**(code **)(*(int *)param_2 + 0x4c))(param_2,local_220,0x100,0);
uVar2 = CResponseDict<ResponseGroup,unsigned_short>::Find
((CResponseDict<ResponseGroup,unsigned_short> *)(puVar1 + 3),local_220);
if (uVar2 != 0xffff) {
iVar5 = (uint)uVar2 * 0x20 + puVar1[4];
(**(code **)(*(int *)param_2 + 8))(param_2,iVar5 + 0xc,ResponseGroup::m_DataMap);
sVar3 = (**(code **)(*(int *)param_2 + 0x30))(param_2);
if (0 < sVar3) {
local_270 = 0;
do {
(**(code **)(*(int *)param_2 + 0x18))(param_2,local_240);
iVar6 = _V_stricmp(local_240,"Response");
if ((iVar6 == 0) &&
((**(code **)(*(int *)param_2 + 0x4c))(param_2,local_120,0x100,0),
0 < *(int *)(iVar5 + 0x14))) {
iVar8 = 0;
iVar6 = 0;
do {
iVar7 = _V_stricmp(*(char **)(*(int *)(iVar5 + 0xc) + 0x28 + iVar8),local_120);
if (iVar7 == 0) {
if (iVar6 < *(int *)(iVar5 + 0x14)) {
(**(code **)(*(int *)param_2 + 8))
(param_2,*(int *)(iVar5 + 0xc) + iVar8,Response::m_DataMap);
}
break;
}
iVar6 = iVar6 + 1;
iVar8 = iVar8 + 0x50;
} while (iVar6 < *(int *)(iVar5 + 0x14));
}
(**(code **)(*(int *)param_2 + 0x20))(param_2);
local_270 = local_270 + 1;
} while (local_270 < sVar3);
}
}
}
(**(code **)(*(int *)param_2 + 0x20))(param_2);
local_274 = local_274 + 1;
} while (local_274 != iVar4);
}
if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
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.