L L4D2node

_Host_RunFrame_Input

0x00176e10 · 487 bytes · __cdecl

_Z20_Host_RunFrame_Inputfb

Decompiled

undefined (2 params)

/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* _Host_RunFrame_Input(float, bool) */

void _Host_RunFrame_Input(float param_1,bool param_2)

{
  uint *puVar1;
  int iVar2;
  char cVar3;
  int iVar4;
  longdouble lVar5;
  undefined4 local_24;
  undefined4 local_20;
  undefined4 local_18;
  undefined4 local_14;
  int local_10;
  
  local_24 = 0;
  local_20 = 0;
  if (_Plat_SetBenchmarkMode == 0) {
    local_10 = 0;
  }
  else {
    (**(code **)(_Plat_SetBenchmarkMode + 0x50))
              (_Plat_SetBenchmarkMode,&local_24,0,0,0,0,"/data/src/engine/./host.cpp",0xab4,
               &_Host_RunFrame_Input(float,bool)::tm_fmt,"(%s)%s","Input","_Host_RunFrame_Input");
    local_10 = _Plat_SetBenchmarkMode;
  }
  iVar2 = _DAT_0040b9d4;
  local_18 = local_24;
  local_14 = local_20;
  if ((_DAT_0040b028 != 0) || (DAT_0040b02c == '\0')) {
                    /* try { // try from 00176f86 to 00176fe6 has its CatchHandler @ 00177024 */
    iVar4 = ThreadGetCurrentId();
    if (iVar2 == iVar4) {
      if ((char *)*_DAT_0040b030 != "_Host_RunFrame_Input") {
        _DAT_0040b030 =
             (int *)CVProfNode::GetSubNode((char *)_DAT_0040b030,0x2b274d,(char *)0x0,0x2b275c);
      }
      puVar1 = (uint *)(_DAT_0040b0bc + 4 + _DAT_0040b030[0x1c] * 8);
      *puVar1 = *puVar1 | 4;
      CVProfNode::EnterScope();
      DAT_0040b02c = '\0';
    }
  }
                    /* try { // try from 00176ebf to 00176ece has its CatchHandler @ 00177003 */
  lVar5 = (longdouble)Plat_FloatTime();
  g_HostTimes._112_8_ = (undefined8)lVar5;
  lVar5 = (longdouble)Plat_FloatTime();
  iVar2 = _DAT_0040b9d4;
  g_HostTimes._168_8_ = ((double)g_HostTimes._168_8_ - (double)g_HostTimes._112_8_) + (double)lVar5;
  if ((DAT_0040b02c == '\0') || (_DAT_0040b028 != 0)) {
    iVar4 = ThreadGetCurrentId();
    if (iVar2 == iVar4) {
      cVar3 = CVProfNode::ExitScope();
      if (cVar3 != '\0') {
        _DAT_0040b030 = (int *)_DAT_0040b030[0x19];
      }
      DAT_0040b02c = _DAT_0040b030 == (int *)0x40b034;
    }
  }
  if (local_10 != 0) {
    (**(code **)(local_10 + 0x54))(local_10,local_18,local_14,0,0,0);
  }
  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)