L L4D2node

CChoreoStringPool::GetString

0x0081a270 · 90 bytes · __thiscall

_ZN17CChoreoStringPool9GetStringEsPci

Decompiled

undefined (4 params)

/* CChoreoStringPool::GetString(short, char*, int) */

undefined4 __thiscall
CChoreoStringPool::GetString(CChoreoStringPool *this,short param_1,char *param_2,int param_3)

{
  char *pcVar1;
  
  pcVar1 = (char *)(**(code **)(*scenefilecache + 0x24))(scenefilecache,(int)param_1);
  if (pcVar1 != (char *)0x0) {
    V_strncpy(param_2,pcVar1,param_3);
    return 1;
  }
  V_strncpy(param_2,"",param_3);
  return 0;
}

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)