CDefaultResponseSystemSaveRestoreBlockHandler::Restore
0x005b64f0 · 535 bytes · __regparm3
_ZN45CDefaultResponseSystemSaveRestoreBlockHandler7RestoreEP8IRestoreb.part.265
Decompiled
undefined (2 params)
/* CDefaultResponseSystemSaveRestoreBlockHandler::Restore(IRestore*, bool) [clone .part.265] */
void __regparm3
CDefaultResponseSystemSaveRestoreBlockHandler::Restore(IRestore *param_1,bool param_2)
{
ushort uVar1;
short sVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
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);
iVar3 = (**(code **)(*(int *)param_1 + 0x3c))(param_1);
local_274 = 0;
if (0 < iVar3) {
do {
(**(code **)(*(int *)param_1 + 0x18))(param_1,local_260);
iVar4 = _V_stricmp(local_260,"ResponseGroup");
if (iVar4 == 0) {
(**(code **)(*(int *)param_1 + 0x4c))(param_1,local_220,0x100,0);
uVar1 = CResponseDict<ResponseGroup,unsigned_short>::Find
((CResponseDict<ResponseGroup,unsigned_short> *)&DAT_00fb864c,local_220);
if (uVar1 != 0xffff) {
iVar4 = (uint)uVar1 * 0x20 + DAT_00fb8650;
(**(code **)(*(int *)param_1 + 8))(param_1,iVar4 + 0xc,ResponseGroup::m_DataMap);
sVar2 = (**(code **)(*(int *)param_1 + 0x30))(param_1);
if (0 < sVar2) {
local_270 = 0;
do {
(**(code **)(*(int *)param_1 + 0x18))(param_1,local_240);
iVar5 = _V_stricmp(local_240,"Response");
if ((iVar5 == 0) &&
((**(code **)(*(int *)param_1 + 0x4c))(param_1,local_120,0x100,0),
0 < *(int *)(iVar4 + 0x14))) {
iVar7 = 0;
iVar5 = 0;
do {
iVar6 = _V_stricmp(*(char **)(*(int *)(iVar4 + 0xc) + 0x28 + iVar7),local_120);
if (iVar6 == 0) {
if (iVar5 < *(int *)(iVar4 + 0x14)) {
(**(code **)(*(int *)param_1 + 8))
(param_1,*(int *)(iVar4 + 0xc) + iVar7,Response::m_DataMap);
}
break;
}
iVar5 = iVar5 + 1;
iVar7 = iVar7 + 0x50;
} while (iVar5 < *(int *)(iVar4 + 0x14));
}
(**(code **)(*(int *)param_1 + 0x20))(param_1);
local_270 = local_270 + 1;
} while (local_270 < sVar2);
}
}
}
(**(code **)(*(int *)param_1 + 0x20))(param_1);
local_274 = local_274 + 1;
} while (local_274 != iVar3);
}
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.