L L4D2node

GCSDK::CSharedObjectTypeCache::~CSharedObjectTypeCache

0x00072070 · 125 bytes · __thiscall

_ZN5GCSDK22CSharedObjectTypeCacheD0Ev

Decompiled

undefined (1 param)

/* GCSDK::CSharedObjectTypeCache::~CSharedObjectTypeCache() */

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

{
  CUtlMemory<GCSDK::CSharedObject*,int> *this_00;
  int *piVar1;
  int iVar2;
  
  iVar2 = 0;
  *(undefined ***)this = &PTR__CSharedObjectTypeCache_000b5b00;
  if (0 < *(int *)(this + 0x10)) {
    do {
      piVar1 = *(int **)(*(int *)(this + 4) + iVar2 * 4);
      if (piVar1 != (int *)0x0) {
        (**(code **)(*piVar1 + 4))(piVar1);
      }
      iVar2 = iVar2 + 1;
    } while (iVar2 < *(int *)(this + 0x10));
  }
  this_00 = (CUtlMemory<GCSDK::CSharedObject*,int> *)(this + 4);
  *(undefined4 *)(this + 0x10) = 0;
  CUtlMemory<GCSDK::CSharedObject*,int>::Purge(this_00);
  *(undefined4 *)(this + 0x10) = 0;
  *(undefined4 *)(this + 0x14) = *(undefined4 *)(this + 4);
  CUtlMemory<GCSDK::CSharedObject*,int>::Purge(this_00);
  *(undefined4 *)(this + 0x14) = *(undefined4 *)(this + 4);
  CUtlMemory<GCSDK::CSharedObject*,int>::Purge(this_00);
  operator_delete(this);
  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)