L L4D2node

CPureServerWhitelist::CheckEntry

0x001d7870 · 92 bytes · __thiscall

_ZN20CPureServerWhitelist10CheckEntryER8CUtlDictIPNS_8CCommandEiEPKcS2_

Decompiled

undefined (4 params)

/* CPureServerWhitelist::CheckEntry(CUtlDict<CPureServerWhitelist::CCommand*, int>&, char const*,
   CPureServerWhitelist::CCommand*) */

CCommand * __thiscall
CPureServerWhitelist::CheckEntry
          (CPureServerWhitelist *this,CUtlDict *param_1,char *param_2,CCommand *param_3)

{
  CCommand *pCVar1;
  int iVar2;
  char *local_14 [2];
  
  if (param_2 != (char *)0x0) {
    local_14[0] = param_2;
    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>>
            ::Find((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,(Node_t *)local_14);
    if (iVar2 != -1) {
      iVar2 = *(int *)(param_1 + 4) + iVar2 * 0x18;
      if (param_3 == (CCommand *)0x0) {
        return *(CCommand **)(iVar2 + 0x14);
      }
      pCVar1 = *(CCommand **)(iVar2 + 0x14);
      if (*(ushort *)(param_3 + 2) < *(ushort *)(pCVar1 + 2)) {
        param_3 = pCVar1;
      }
    }
  }
  return param_3;
}

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)