L L4D2node

GCSDK::CSharedObjectCache::~CSharedObjectCache

0x00072170 · 294 bytes · __thiscall

_ZN5GCSDK18CSharedObjectCacheD1Ev

Decompiled

undefined (1 param)

/* GCSDK::CSharedObjectCache::~CSharedObjectCache() */

void __thiscall GCSDK::CSharedObjectCache::~CSharedObjectCache(CSharedObjectCache *this)

{
  CUtlRBTree<CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::Node_t,unsigned_short,CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
  *this_00;
  CUtlMemory<UtlRBTreeNode_t<CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
  *this_01;
  int *piVar1;
  ushort uVar2;
  
  this_00 = (CUtlRBTree<CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::Node_t,unsigned_short,CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
             *)(this + 0xc);
  *(undefined ***)this = &PTR__CSharedObjectCache_000b5b10;
  for (uVar2 = CUtlRBTree<CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::Node_t,unsigned_short,CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
               ::FirstInorder(this_00); uVar2 != 0xffff;
      uVar2 = CUtlRBTree<CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::Node_t,unsigned_short,CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
              ::NextInorder(this_00,uVar2)) {
    piVar1 = *(int **)((uint)uVar2 * 0x10 + *(int *)(this + 0x10) + 0xc);
    if (piVar1 != (int *)0x0) {
      (**(code **)(*piVar1 + 4))(piVar1);
    }
  }
  this_01 = (CUtlMemory<UtlRBTreeNode_t<CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
             *)(this + 0x10);
  CUtlRBTree<CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::Node_t,unsigned_short,CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
  ::RemoveAll(this_00);
  *(undefined2 *)(this + 0x20) = 0xffff;
  CUtlMemory<UtlRBTreeNode_t<CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
  ::Purge(this_01);
  *(undefined2 *)(this + 0x22) = 0xffff;
  *(undefined4 *)(this + 0x5c) = 0;
  CUtlMemory<GCSDK::CSharedObject*,int>::Purge
            ((CUtlMemory<GCSDK::CSharedObject*,int> *)(this + 0x50));
  *(undefined4 *)(this + 0x60) = *(undefined4 *)(this + 0x50);
  CUtlMemory<GCSDK::CSharedObject*,int>::Purge
            ((CUtlMemory<GCSDK::CSharedObject*,int> *)(this + 0x50));
  *(undefined4 *)(this + 0x48) = 0;
  CUtlMemory<GCSDK::CSharedObject*,int>::Purge
            ((CUtlMemory<GCSDK::CSharedObject*,int> *)(this + 0x3c));
  *(undefined4 *)(this + 0x4c) = *(undefined4 *)(this + 0x3c);
  CUtlMemory<GCSDK::CSharedObject*,int>::Purge
            ((CUtlMemory<GCSDK::CSharedObject*,int> *)(this + 0x3c));
  *(undefined4 *)(this + 0x34) = 0;
  CUtlMemory<CSteamID,int>::Purge((CUtlMemory<CSteamID,int> *)(this + 0x28));
  *(undefined4 *)(this + 0x38) = *(undefined4 *)(this + 0x28);
  CUtlMemory<CSteamID,int>::Purge((CUtlMemory<CSteamID,int> *)(this + 0x28));
  CUtlRBTree<CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::Node_t,unsigned_short,CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
  ::RemoveAll(this_00);
  *(undefined2 *)(this + 0x20) = 0xffff;
  CUtlMemory<UtlRBTreeNode_t<CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
  ::Purge(this_01);
  *(undefined2 *)(this + 0x22) = 0xffff;
  CUtlMemory<UtlRBTreeNode_t<CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
  ::Purge(this_01);
  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)