Host_Map_Helper_FuzzyName
0x0017e400 · 196 bytes · __regparm3
_ZL25Host_Map_Helper_FuzzyNameRK8CCommandPcj.constprop.41
Decompiled
undefined (3 params)
/* Host_Map_Helper_FuzzyName(CCommand const&, char*, unsigned int) [clone .constprop.41] */
bool __regparm3 Host_Map_Helper_FuzzyName(CCommand *param_1,char *param_2,uint param_3)
{
char *pcVar1;
int iVar2;
int iVar3;
CCommand *pCVar4;
CUtlString local_102c [16];
char local_101c [4108];
CUtlString::CUtlString(local_102c);
pcVar1 = "";
if (0 < *(int *)param_1) {
pcVar1 = *(char **)(param_1 + 0x408);
}
/* try { // try from 0017e43a to 0017e4a5 has its CatchHandler @ 0017e4c4 */
CUtlString::operator=(local_102c,pcVar1);
CUtlString::operator+=(local_102c," ");
pCVar4 = (CCommand *)&DAT_002c79d4;
if (*(int *)(param_1 + 4) != 0) {
pCVar4 = param_1 + *(int *)(param_1 + 4) + 8;
}
pcVar1 = CUtlString::operator_cast_to_char_(local_102c);
iVar2 = _Host_Map_f_CompletionFunc(pcVar1,(char *)pCVar4,local_101c);
if (0 < iVar2) {
iVar3 = CUtlString::Length(local_102c);
V_strncpy(param_2,local_101c + iVar3,0x60);
}
CUtlMemory<unsigned_char,int>::Purge((CUtlMemory<unsigned_char,int> *)local_102c);
return 0 < iVar2;
}
SourceMod gamedata
paste intoaddons/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.
Signatures + Functions block. The plugin uses
DHookCreateFromConf - DHooks reads return type, this-type,
calling convention, and argument types straight from the gamedata. Less
boilerplate in the plugin, types travel with the gamedata.
Gamedata KeyValues
DHooks plugin example
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.