CChoreoChannel::GetSortedCombinedEventList
0x00b9e690 · 219 bytes · __thiscall
_ZN14CChoreoChannel26GetSortedCombinedEventListEPKcR10CUtlRBTreeIP12CChoreoEventtPFbRKS4_S6_E10CUtlMemoryI15UtlRBTreeNode_tIS4_tEtEE
Decompiled
undefined (3 params)
/* CChoreoChannel::GetSortedCombinedEventList(char const*, CUtlRBTree<CChoreoEvent*, unsigned short,
bool (*)(CChoreoEvent* const&, CChoreoEvent* const&), CUtlMemory<UtlRBTreeNode_t<CChoreoEvent*,
unsigned short>, unsigned short> >&) */
bool __thiscall
CChoreoChannel::GetSortedCombinedEventList(CChoreoChannel *this,char *param_1,CUtlRBTree *param_2)
{
int iVar1;
int iVar2;
char *pcVar3;
int iVar4;
CChoreoEvent *local_20 [4];
iVar4 = 0;
CUtlRBTree<CChoreoEvent*,unsigned_short,bool(*)(CChoreoEvent*const&,CChoreoEvent*const&),CUtlMemory<UtlRBTreeNode_t<CChoreoEvent*,unsigned_short>,unsigned_short>>
::RemoveAll((CUtlRBTree<CChoreoEvent*,unsigned_short,bool(*)(CChoreoEvent*const&,CChoreoEvent*const&),CUtlMemory<UtlRBTreeNode_t<CChoreoEvent*,unsigned_short>,unsigned_short>>
*)param_2);
iVar1 = *(int *)(this + 0x90);
if (0 < iVar1) {
do {
if (iVar4 < *(int *)(this + 0x90)) {
local_20[0] = *(CChoreoEvent **)(*(int *)(this + 0x84) + iVar4 * 4);
iVar2 = CChoreoEvent::GetType(local_20[0]);
}
else {
local_20[0] = (CChoreoEvent *)0x0;
iVar2 = CChoreoEvent::GetType((CChoreoEvent *)0x0);
}
if (((iVar2 == 5) && (iVar2 = CChoreoEvent::GetCloseCaptionType(local_20[0]), iVar2 != 2)) &&
((iVar2 = CChoreoEvent::GetCloseCaptionType(local_20[0]), iVar2 != 0 ||
(iVar2 = CChoreoEvent::GetNumSlaves(local_20[0]), iVar2 != 0)))) {
pcVar3 = (char *)CChoreoEvent::GetCloseCaptionToken(local_20[0]);
iVar2 = _V_stricmp(pcVar3,param_1);
if (iVar2 == 0) {
CUtlRBTree<CChoreoEvent*,unsigned_short,bool(*)(CChoreoEvent*const&,CChoreoEvent*const&),CUtlMemory<UtlRBTreeNode_t<CChoreoEvent*,unsigned_short>,unsigned_short>>
::Insert((CUtlRBTree<CChoreoEvent*,unsigned_short,bool(*)(CChoreoEvent*const&,CChoreoEvent*const&),CUtlMemory<UtlRBTreeNode_t<CChoreoEvent*,unsigned_short>,unsigned_short>>
*)param_2,local_20);
}
}
iVar4 = iVar4 + 1;
} while (iVar4 != iVar1);
}
return *(short *)(param_2 + 0x12) != 0;
}
SourceMod gamedata
paste intoaddons/sourcemod/gamedata/<your_plugin>.txt
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.
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.