L L4D2node

GetSteamExtraAppId

0x000d8da0 · 96 bytes · __cdecl

_Z18GetSteamExtraAppIdPKcPi

Decompiled

undefined (2 params)

/* GetSteamExtraAppId(char const*, int*) */

int GetSteamExtraAppId(char *param_1,int *param_2)

{
  int iVar1;
  int iVar2;
  KeyValues *local_18;
  KeyValues *local_14;
  KeyValues *local_10 [2];
  
  iVar1 = LoadGameInfoFile(param_1,&local_18,&local_14,local_10);
  if (iVar1 == 0) {
    iVar2 = KeyValues::GetInt(local_14,"ToolsAppId",-1);
    *param_2 = iVar2;
    KeyValues::deleteThis();
  }
  return iVar1;
}

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)