L L4D2node

CreateInterfaceInternal

0x00040110 · 94 bytes · __cdecl

_Z23CreateInterfaceInternalPKcPi

Decompiled

undefined (2 params)

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

undefined4 CreateInterfaceInternal(char *param_1,int *param_2)

{
  undefined4 *puVar1;
  int iVar2;
  undefined4 uVar3;
  
  puVar1 = s_pInterfaceRegs;
  while( true ) {
    if (puVar1 == (undefined4 *)0x0) {
      if (param_2 != (int *)0x0) {
        *param_2 = 1;
      }
      return 0;
    }
    iVar2 = strcmp((char *)puVar1[1],param_1);
    if (iVar2 == 0) break;
    puVar1 = (undefined4 *)puVar1[2];
  }
  if (param_2 != (int *)0x0) {
    *param_2 = 0;
  }
                    /* WARNING: Could not recover jumptable at 0x0004015d. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  uVar3 = (*(code *)*puVar1)();
  return uVar3;
}

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)