L L4D2node

CAppSystemGroup::OnShutdown

0x0026b840 · 204 bytes · __thiscall

_ZN15CAppSystemGroup10OnShutdownEv

Decompiled

undefined (1 param)

/* CAppSystemGroup::OnShutdown() */

void __thiscall CAppSystemGroup::OnShutdown(CAppSystemGroup *this)

{
  undefined4 *puVar1;
  int iVar2;
  int iVar3;
  
  iVar2 = *(int *)(this + 0x4c);
  s_pCurrentAppSystem = this;
  if (iVar2 < 0) {
LAB_0026b8d0:
    iVar2 = *(int *)(this + 0x24) + -1;
    iVar3 = iVar2 * 4;
    if (-1 < iVar2) {
      do {
        iVar2 = iVar2 + -1;
        puVar1 = (undefined4 *)(*(int *)(this + 0x18) + iVar3);
        iVar3 = iVar3 + -4;
        (**(code **)(*(int *)*puVar1 + 0x10))((int *)*puVar1);
      } while (iVar2 != -1);
    }
    (**(code **)(*(int *)this + 0xc))(this);
  }
  else {
    if (iVar2 < 2) goto LAB_0026b891;
    if (3 < iVar2) goto LAB_0026b8d0;
  }
  iVar2 = *(int *)(this + 0x24) + -1;
  if (-1 < iVar2) {
    iVar3 = iVar2 * 4;
    do {
      iVar2 = iVar2 + -1;
      puVar1 = (undefined4 *)(*(int *)(this + 0x18) + iVar3);
      iVar3 = iVar3 + -4;
      (**(code **)(*(int *)*puVar1 + 4))((int *)*puVar1);
    } while (iVar2 != -1);
  }
LAB_0026b891:
  *(undefined4 *)(this + 0x24) = 0;
  CUtlDict<int,unsigned_short>::RemoveAll((CUtlDict<int,unsigned_short> *)(this + 0x2c));
  LoggingSystem_ResetCurrentLoggingState();
  LoggingSystem_RegisterLoggingListener(g_pDefaultLoggingListener);
  UnloadAllModules(this);
                    /* WARNING: Could not recover jumptable at 0x0026b8cc. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(*(int *)this + 0x10))();
  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)