L L4D2node

CDefaultResponseSystemSaveRestoreBlockHandler::Save

0x005c0130 · 369 bytes · __thiscall

_ZN45CDefaultResponseSystemSaveRestoreBlockHandler4SaveEP5ISave

Decompiled

undefined (2 params)

/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* CDefaultResponseSystemSaveRestoreBlockHandler::Save(ISave*) */

void __thiscall
CDefaultResponseSystemSaveRestoreBlockHandler::Save
          (CDefaultResponseSystemSaveRestoreBlockHandler *this,ISave *param_1)

{
  code *pcVar1;
  ushort uVar2;
  undefined1 *puVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  uint local_38;
  uint local_28;
  undefined4 local_24 [5];
  
  local_28 = (uint)DAT_00fb865e;
  (**(code **)(*(int *)param_1 + 0x2c))(param_1,&local_28,1);
  local_38 = 0;
  if (0 < (int)local_28) {
    do {
      (**(code **)(*(int *)param_1 + 0x1c))(param_1,"ResponseGroup");
      pcVar1 = *(code **)(*(int *)param_1 + 0x3c);
      iVar6 = (local_38 & 0xffff) * 0x20;
      local_24[0] = *(undefined4 *)(DAT_00fb8650 + 8 + iVar6);
      uVar2 = CUtlRBTree<CUtlMap<unsigned_int,char_const*,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,char_const*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,char_const*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
              ::Find((CUtlRBTree<CUtlMap<unsigned_int,char_const*,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,char_const*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,char_const*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
                      *)&DAT_00fb8668,(Node_t *)local_24);
      if (uVar2 == 0xffff) {
        puVar3 = &DAT_00d539c2;
      }
      else {
        puVar3 = *(undefined1 **)((uint)uVar2 * 0x10 + _DAT_00fb866c + 0xc);
      }
      (*pcVar1)(param_1,puVar3);
      iVar6 = iVar6 + DAT_00fb8650;
      (**(code **)(*(int *)param_1 + 0x14))(param_1,iVar6 + 0xc,ResponseGroup::m_DataMap);
      local_24[0] = CONCAT22(local_24[0]._2_2_,(short)*(undefined4 *)(iVar6 + 0x14));
      (**(code **)(*(int *)param_1 + 0x28))(param_1,local_24,1);
      iVar4 = 0;
      if (0 < (short)local_24[0]) {
        iVar7 = 0;
        do {
          iVar5 = *(int *)(iVar6 + 0xc);
          (**(code **)(*(int *)param_1 + 0x1c))(param_1,"Response");
          iVar5 = iVar5 + iVar7;
          iVar7 = iVar7 + 0x50;
          (**(code **)(*(int *)param_1 + 0x3c))(param_1,*(undefined4 *)(iVar5 + 0x28));
          (**(code **)(*(int *)param_1 + 0x14))(param_1,iVar5,Response::m_DataMap);
          (**(code **)(*(int *)param_1 + 0x24))(param_1);
          iVar4 = iVar4 + 1;
        } while (iVar4 < (short)local_24[0]);
      }
      (**(code **)(*(int *)param_1 + 0x24))(param_1);
      local_38 = local_38 + 1;
    } while ((int)local_38 < (int)local_28);
  }
  return;
}

SourceMod gamedata

paste into addons/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.



        

        

          

Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.

Return-type handling cheatsheet (DHookReturn)