L L4D2node

V_vsnwprintf

0x00049580 · 80 bytes · __cdecl

_Z12V_vsnwprintfPwiPKwPc

Decompiled

undefined (4 params)

/* V_vsnwprintf(wchar_t*, int, wchar_t const*, char*) */

int V_vsnwprintf(wchar_t *param_1,int param_2,wchar_t *param_3,char *param_4)

{
  int iVar1;
  
  iVar1 = vswprintf(param_1,param_2,param_3,param_4);
  if ((-1 < iVar1) && ((iVar1 < param_2 || (param_2 < 1)))) {
    return iVar1;
  }
  param_1[param_2 + -1] = L'\0';
  return param_2;
}

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)