L L4D2node

CCvarUtilities::CvarDifferences

0x00128d80 · 209 bytes · __cdecl

_ZN14CCvarUtilities15CvarDifferencesERK8CCommand

Decompiled

undefined (1 param)

/* CCvarUtilities::CvarDifferences(CCommand const&) */

void CCvarUtilities::CvarDifferences(CCommand *param_1)

{
  char cVar1;
  int *piVar2;
  ConVar *this;
  char *pcVar3;
  int iVar4;
  char *pcVar5;
  
  piVar2 = (int *)(**(code **)(*g_pCVar + 0x98))(g_pCVar);
                    /* try { // try from 00128da0 to 00128e3c has its CatchHandler @ 00128e57 */
  (**(code **)(*piVar2 + 8))(piVar2);
  while( true ) {
    cVar1 = (**(code **)(*piVar2 + 0x10))(piVar2);
    if (cVar1 == '\0') break;
    this = (ConVar *)(**(code **)(*piVar2 + 0x14))(piVar2);
    cVar1 = (**(code **)(*(int *)this + 8))(this);
    if (cVar1 == '\0') {
      cVar1 = (**(code **)(*(int *)this + 0xc))(this,2);
      if (cVar1 == '\0') {
        cVar1 = (**(code **)(*(int *)this + 0xc))(this,0x10);
        if (cVar1 == '\0') {
          pcVar5 = "FCVAR_NEVER_AS_STRING";
          if ((((byte)this[0x15] & 0x10) == 0) &&
             (pcVar5 = *(char **)(*(int *)(this + 0x1c) + 0x24), pcVar5 == (char *)0x0)) {
            pcVar5 = "";
          }
          pcVar3 = (char *)ConVar::GetDefault(this);
          iVar4 = _V_stricmp(pcVar3,pcVar5);
          if (iVar4 != 0) {
            ConVar_PrintDescription((ConCommandBase *)this);
          }
        }
      }
    }
    (**(code **)(*piVar2 + 0xc))(piVar2);
  }
                    /* WARNING: Could not recover jumptable at 0x00128e55. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(*piVar2 + 4))();
  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)