L L4D2node

V_ExtractFileExtension

0x0004a8f0 · 64 bytes · __cdecl

_Z22V_ExtractFileExtensionPKcPci

Decompiled

undefined (3 params)

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

void V_ExtractFileExtension(char *param_1,char *param_2,int param_3)

{
  char *__src;
  
  *param_2 = '\0';
  __src = (char *)V_GetFileExtension(param_1);
  if (__src != (char *)0x0) {
    strncpy(param_2,__src,param_3);
    if (0 < param_3) {
      param_2[param_3 + -1] = '\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)