L L4D2node

GCSDK::CRecordInfo::BuildColumnNameIndex

0x00093ea0 · 158 bytes · __thiscall

_ZN5GCSDK11CRecordInfo20BuildColumnNameIndexEv

Decompiled

undefined (1 param)

/* GCSDK::CRecordInfo::BuildColumnNameIndex() */

void __thiscall GCSDK::CRecordInfo::BuildColumnNameIndex(CRecordInfo *this)

{
  pthread_mutex_t *__mutex;
  int iVar1;
  int iVar2;
  int local_24;
  int local_20;
  
  __mutex = (pthread_mutex_t *)(this + 0x118);
  pthread_mutex_lock(__mutex);
  if (this[0xe2] == (CRecordInfo)0x0) {
    if (0 < *(int *)(this + 0x9c)) {
      iVar1 = 0;
      iVar2 = 0;
      do {
        local_24 = *(int *)(this + 0x90) + iVar2;
        local_20 = iVar1;
                    /* try { // try from 00093efb to 00093eff has its CatchHandler @ 00093f43 */
        CUtlRBTree<CUtlMap<char_const*,int,unsigned_short>::Node_t,unsigned_short,CUtlMap<char_const*,int,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
        ::Insert((CUtlRBTree<CUtlMap<char_const*,int,unsigned_short>::Node_t,unsigned_short,CUtlMap<char_const*,int,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
                  *)(this + 0xa4),(Node_t *)&local_24);
        iVar1 = iVar1 + 1;
        iVar2 = iVar2 + 0xa0;
      } while (iVar1 < *(int *)(this + 0x9c));
    }
    this[0xe2] = (CRecordInfo)0x1;
    pthread_mutex_unlock(__mutex);
    return;
  }
  pthread_mutex_unlock(__mutex);
  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)