L L4D2node

Sys_FindFirstEx

0x00215260 · 131 bytes · __cdecl

_Z15Sys_FindFirstExPKcS0_Pci

Decompiled

undefined (4 params)

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

char * Sys_FindFirstEx(char *param_1,char *param_2,char *param_3,int param_4)

{
  char *pcVar1;
  
  if (g_hfind != -1) {
    Sys_Error("Sys_FindFirst without close");
    (**(code **)(*g_pFileSystem + 0x7c))(g_pFileSystem,g_hfind);
  }
  pcVar1 = (char *)(**(code **)(*g_pFileSystem + 0x80))(g_pFileSystem,param_1,param_2,&g_hfind);
  if ((pcVar1 != (char *)0x0) && (param_3 != (char *)0x0)) {
    V_FileBase(pcVar1,param_3,param_4);
    return pcVar1;
  }
  return pcVar1;
}

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)