L L4D2node

CPureServerWhitelist::InternalCacheFileCRCs

0x001d76a0 · 119 bytes · __thiscall

_ZN20CPureServerWhitelist21InternalCacheFileCRCsER8CUtlDictIPNS_8CCommandEiE13ECacheCRCType

Decompiled

undefined (3 params)

/* CPureServerWhitelist::InternalCacheFileCRCs(CUtlDict<CPureServerWhitelist::CCommand*, int>&,
   ECacheCRCType) */

void __thiscall
CPureServerWhitelist::InternalCacheFileCRCs
          (CPureServerWhitelist *this,
          CUtlRBTree<CUtlMap<char_const*,CPureServerWhitelist::CCommand*,int>::Node_t,int,CUtlMap<char_const*,CPureServerWhitelist::CCommand*,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CPureServerWhitelist::CCommand*,int>::Node_t,int>,int>>
          *param_1,undefined4 param_3)

{
  int iVar1;
  int iVar2;
  
  iVar2 = CUtlRBTree<CUtlMap<char_const*,CPureServerWhitelist::CCommand*,int>::Node_t,int,CUtlMap<char_const*,CPureServerWhitelist::CCommand*,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CPureServerWhitelist::CCommand*,int>::Node_t,int>,int>>
          ::FirstInorder(param_1);
  for (; iVar2 != -1;
      iVar2 = CUtlRBTree<CUtlMap<char_const*,CPureServerWhitelist::CCommand*,int>::Node_t,int,CUtlMap<char_const*,CPureServerWhitelist::CCommand*,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CPureServerWhitelist::CCommand*,int>::Node_t,int>,int>>
              ::NextInorder(param_1,iVar2)) {
    iVar1 = *(int *)(param_1 + 4) + iVar2 * 0x18;
    if (*(char *)(*(int *)(iVar1 + 0x14) + 1) != '\0') {
      (**(code **)(**(int **)(this + 0x74) + 0x178))
                (*(int **)(this + 0x74),*(undefined4 *)(iVar1 + 0x10),param_3,this + 0x80);
    }
  }
  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)