CUtlDict<ConceptHistory_t,int>::Insert
0x005d7350 · 168 bytes · __thiscall
_ZN8CUtlDictI16ConceptHistory_tiE6InsertEPKcRKS0_
Decompiled
undefined (3 params)
/* CUtlDict<ConceptHistory_t, int>::Insert(char const*, ConceptHistory_t const&) */
undefined4 __thiscall
CUtlDict<ConceptHistory_t,int>::Insert
(CUtlDict<ConceptHistory_t,int> *this,char *param_1,ConceptHistory_t *param_2)
{
char *pcVar1;
undefined4 uVar2;
int in_GS_OFFSET;
char *local_e4;
undefined4 local_e0;
AI_Response local_dc [188];
int local_20;
local_20 = *(int *)(in_GS_OFFSET + 0x14);
pcVar1 = strdup(param_1);
local_e0 = 0xbf800000;
AI_Response::AI_Response(local_dc);
local_e0 = *(undefined4 *)param_2;
local_e4 = pcVar1;
/* try { // try from 005d73b9 to 005d73cf has its CatchHandler @ 005d73f8 */
AI_Response::operator=(local_dc,(AI_Response *)(param_2 + 4));
uVar2 = CUtlRBTree<CUtlMap<char_const*,ConceptHistory_t,int>::Node_t,int,CUtlMap<char_const*,ConceptHistory_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,ConceptHistory_t,int>::Node_t,int>,int>>
::Insert((CUtlRBTree<CUtlMap<char_const*,ConceptHistory_t,int>::Node_t,int,CUtlMap<char_const*,ConceptHistory_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,ConceptHistory_t,int>::Node_t,int>,int>>
*)this,(Node_t *)&local_e4);
AI_Response::~AI_Response(local_dc);
if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
return uVar2;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
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.