L L4D2node

SetLaunchOptions

0x0017d150 · 155 bytes · __cdecl

_Z16SetLaunchOptionsRK8CCommand

Decompiled

undefined (1 param)

/* SetLaunchOptions(CCommand const&) */

void SetLaunchOptions(CCommand *param_1)

{
  char *pcVar1;
  KeyValues *this;
  char *pcVar2;
  int iVar3;
  int iVar4;
  uint in_stack_ffffffd8;
  
  if (g_pLaunchOptions != (KeyValues *)0x0) {
    KeyValues::deleteThis();
  }
  this = KeyValues::operator_new((KeyValues *)0x2c,in_stack_ffffffd8);
                    /* try { // try from 0017d196 to 0017d19a has its CatchHandler @ 0017d1eb */
  KeyValues::KeyValues(this,"LaunchOptions",(IKeyValuesSystem *)0x0,false);
  iVar3 = 0;
  g_pLaunchOptions = this;
  if (0 < *(int *)param_1) {
    do {
      pcVar1 = *(char **)(param_1 + iVar3 * 4 + 0x408);
      iVar4 = iVar3 + 1;
      pcVar2 = (char *)va("Arg%d",iVar3);
      KeyValues::SetString(g_pLaunchOptions,pcVar2,pcVar1);
      iVar3 = iVar4;
    } while (iVar4 < *(int *)param_1);
  }
  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)