L L4D2node

CDownloadListGenerator::AddVerifiedCRCData

0x0013f2d0 · 336 bytes · __thiscall

_ZN22CDownloadListGenerator18AddVerifiedCRCDataEhPKcPh

Decompiled

undefined (4 params)

/* CDownloadListGenerator::AddVerifiedCRCData(unsigned char, char const*, unsigned char*) */

void __thiscall
CDownloadListGenerator::AddVerifiedCRCData
          (CDownloadListGenerator *this,uchar param_1,char *param_2,uchar *param_3)

{
  undefined4 uVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  int iVar5;
  int in_GS_OFFSET;
  WhiteListFileData local_135 [260];
  undefined4 local_31;
  undefined4 local_2d;
  undefined4 local_29;
  undefined4 local_25;
  uchar local_21;
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_21 = '\0';
  local_31 = 0;
  local_2d = 0;
  local_29 = 0;
  local_25 = 0;
  uVar1 = *(undefined4 *)param_3;
  uVar2 = *(undefined4 *)(param_3 + 4);
  uVar3 = *(undefined4 *)(param_3 + 8);
  uVar4 = *(undefined4 *)(param_3 + 0xc);
  if (param_2 == (char *)0x0) {
    local_135[0] = (WhiteListFileData)0x0;
  }
  else {
    V_strncpy((char *)local_135,param_2,0x104);
  }
  iVar5 = CUtlVector<CDownloadListGenerator::WhiteListFileData,CUtlMemory<CDownloadListGenerator::WhiteListFileData,int>>
          ::Find((CUtlVector<CDownloadListGenerator::WhiteListFileData,CUtlMemory<CDownloadListGenerator::WhiteListFileData,int>>
                  *)(this + 0x180),local_135);
  if (iVar5 == -1) {
    local_21 = param_1;
    local_31 = uVar1;
    local_2d = uVar2;
    local_29 = uVar3;
    local_25 = uVar4;
    if (param_2 == (char *)0x0) {
      local_135[0] = (WhiteListFileData)0x0;
    }
    else {
      V_strncpy((char *)local_135,param_2,0x104);
    }
    CUtlVector<CDownloadListGenerator::WhiteListFileData,CUtlMemory<CDownloadListGenerator::WhiteListFileData,int>>
    ::InsertBefore((CUtlVector<CDownloadListGenerator::WhiteListFileData,CUtlMemory<CDownloadListGenerator::WhiteListFileData,int>>
                    *)(this + 0x180),*(int *)(this + 0x18c),local_135);
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

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)