L L4D2node

CMapReslistGenerator::SpewTrackedDeletionsLog

0x0018bf10 · 621 bytes · __thiscall

_ZN20CMapReslistGenerator23SpewTrackedDeletionsLogEv

Decompiled

undefined (1 param)

/* CMapReslistGenerator::SpewTrackedDeletionsLog() */

void __thiscall CMapReslistGenerator::SpewTrackedDeletionsLog(CMapReslistGenerator *this)

{
  ushort uVar1;
  code *pcVar2;
  short sVar3;
  int iVar4;
  int iVar5;
  char *pcVar6;
  undefined4 uVar7;
  ushort *puVar8;
  uint uVar9;
  undefined2 local_1e [7];
  
  if ((*this == (CMapReslistGenerator)0x0) ||
     (iVar4 = (**(code **)(*(int *)(g_pFileSystem + 4) + 8))
                        (g_pFileSystem + 4,"undelete.lst",&DAT_002a5dab,"DEFAULT_WRITE_PATH"),
     iVar4 == 0)) {
    return;
  }
  uVar1 = *(ushort *)(this + 0x130);
  do {
    uVar9 = (uint)uVar1;
    if ((CUtlRBTree<CUtlSymbol,unsigned_short,bool(*)(CUtlSymbol_const&,CUtlSymbol_const&),CUtlMemory<UtlRBTreeNode_t<CUtlSymbol,unsigned_short>,unsigned_short>>
         ::Links(unsigned_short)::s_Sentinel == '\0') &&
       (iVar5 = __cxa_guard_acquire(&CUtlRBTree<CUtlSymbol,unsigned_short,bool(*)(CUtlSymbol_const&,CUtlSymbol_const&),CUtlMemory<UtlRBTreeNode_t<CUtlSymbol,unsigned_short>,unsigned_short>>
                                     ::Links(unsigned_short)::s_Sentinel), iVar5 != 0)) {
      CUtlRBTree<CUtlSymbol,unsigned_short,bool(*)(CUtlSymbol_const&,CUtlSymbol_const&),CUtlMemory<UtlRBTreeNode_t<CUtlSymbol,unsigned_short>,unsigned_short>>
      ::Links(unsigned_short)::s_Sentinel = -1;
      DAT_003412c6 = 0xffff;
      DAT_003412c8 = 0xffff;
      __cxa_guard_release(&CUtlRBTree<CUtlSymbol,unsigned_short,bool(*)(CUtlSymbol_const&,CUtlSymbol_const&),CUtlMemory<UtlRBTreeNode_t<CUtlSymbol,unsigned_short>,unsigned_short>>
                           ::Links(unsigned_short)::s_Sentinel);
    }
    sVar3 = CUtlRBTree<CUtlSymbol,unsigned_short,bool(*)(CUtlSymbol_const&,CUtlSymbol_const&),CUtlMemory<UtlRBTreeNode_t<CUtlSymbol,unsigned_short>,unsigned_short>>
            ::Links(unsigned_short)::s_Sentinel;
    if (uVar1 != 0xffff) {
      sVar3 = *(short *)(*(int *)(this + 0x124) + uVar9 * 10);
    }
    if (sVar3 == -1) {
      for (; uVar9 != 0xffff; uVar9 = uVar9 & 0xffff) {
        local_1e[0] = *(undefined2 *)(uVar9 * 10 + *(int *)(this + 0x124) + 8);
        pcVar6 = (char *)CUtlSymbolTable::String((CUtlSymbolTable *)(this + 0x13c),local_1e);
        (**(code **)(*(int *)(g_pFileSystem + 4) + 4))(g_pFileSystem + 4,&DAT_002cc2b5,1,iVar4);
        pcVar2 = *(code **)(*(int *)(g_pFileSystem + 4) + 4);
        uVar7 = _V_strlen(pcVar6);
        (*pcVar2)(g_pFileSystem + 4,pcVar6,uVar7,iVar4);
        (**(code **)(*(int *)(g_pFileSystem + 4) + 4))(g_pFileSystem + 4,&DAT_002af868,2,iVar4);
        uVar9 = CUtlRBTree<CUtlSymbol,unsigned_short,bool(*)(CUtlSymbol_const&,CUtlSymbol_const&),CUtlMemory<UtlRBTreeNode_t<CUtlSymbol,unsigned_short>,unsigned_short>>
                ::NextInorder((CUtlRBTree<CUtlSymbol,unsigned_short,bool(*)(CUtlSymbol_const&,CUtlSymbol_const&),CUtlMemory<UtlRBTreeNode_t<CUtlSymbol,unsigned_short>,unsigned_short>>
                               *)(this + 0x120),(ushort)uVar9);
      }
      (**(code **)(*(int *)(g_pFileSystem + 4) + 0xc))(g_pFileSystem + 4,iVar4);
      return;
    }
    if (CUtlRBTree<CUtlSymbol,unsigned_short,bool(*)(CUtlSymbol_const&,CUtlSymbol_const&),CUtlMemory<UtlRBTreeNode_t<CUtlSymbol,unsigned_short>,unsigned_short>>
        ::Links(unsigned_short)::s_Sentinel == '\0') {
      iVar5 = __cxa_guard_acquire(&CUtlRBTree<CUtlSymbol,unsigned_short,bool(*)(CUtlSymbol_const&,CUtlSymbol_const&),CUtlMemory<UtlRBTreeNode_t<CUtlSymbol,unsigned_short>,unsigned_short>>
                                   ::Links(unsigned_short)::s_Sentinel);
      if (iVar5 != 0) {
        CUtlRBTree<CUtlSymbol,unsigned_short,bool(*)(CUtlSymbol_const&,CUtlSymbol_const&),CUtlMemory<UtlRBTreeNode_t<CUtlSymbol,unsigned_short>,unsigned_short>>
        ::Links(unsigned_short)::s_Sentinel = -1;
        DAT_003412c6 = 0xffff;
        DAT_003412c8 = 0xffff;
        __cxa_guard_release(&CUtlRBTree<CUtlSymbol,unsigned_short,bool(*)(CUtlSymbol_const&,CUtlSymbol_const&),CUtlMemory<UtlRBTreeNode_t<CUtlSymbol,unsigned_short>,unsigned_short>>
                             ::Links(unsigned_short)::s_Sentinel);
      }
      if (uVar1 != 0xffff) goto LAB_0018bfbc;
LAB_0018c159:
      puVar8 = (ushort *)
               &CUtlRBTree<CUtlSymbol,unsigned_short,bool(*)(CUtlSymbol_const&,CUtlSymbol_const&),CUtlMemory<UtlRBTreeNode_t<CUtlSymbol,unsigned_short>,unsigned_short>>
                ::Links(unsigned_short)::s_Sentinel;
    }
    else {
      if (uVar1 == 0xffff) goto LAB_0018c159;
LAB_0018bfbc:
      puVar8 = (ushort *)(*(int *)(this + 0x124) + uVar9 * 10);
    }
    uVar1 = *puVar8;
  } while( true );
}

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)