L L4D2node

CDemoFile::~CDemoFile

0x001301c0 · 49 bytes · __thiscall

_ZN9CDemoFileD2Ev

Decompiled

undefined (1 param)

/* CDemoFile::~CDemoFile() */

void __thiscall CDemoFile::~CDemoFile(CDemoFile *this)

{
  CUtlStreamBuffer *this_00;
  char cVar1;
  
  this_00 = (CUtlStreamBuffer *)(this + 0x534);
  cVar1 = CUtlStreamBuffer::IsOpen(this_00);
  if (cVar1 != '\0') {
    CUtlStreamBuffer::Close(this_00);
  }
  CUtlStreamBuffer::~CUtlStreamBuffer(this_00);
  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)