DispInfo_GetVisibleDispsAndAddOverlayFragmentsToRenderList
0x00137a60 · 418 bytes · __cdecl
_Z58DispInfo_GetVisibleDispsAndAddOverlayFragmentsToRenderListiPP11msurface2_tiPP9CDispInfoRi
Decompiled
undefined (5 params)
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* DispInfo_GetVisibleDispsAndAddOverlayFragmentsToRenderList(int, msurface2_t**, int, CDispInfo**,
int&) */
void DispInfo_GetVisibleDispsAndAddOverlayFragmentsToRenderList
(int param_1,msurface2_t **param_2,int param_3,CDispInfo **param_4,int *param_5)
{
int iVar1;
char cVar2;
int iVar3;
undefined4 local_24;
undefined4 local_20;
undefined4 local_18;
undefined4 local_14;
int local_10;
local_24 = 0;
local_20 = 0;
if (_exit == 0) {
local_10 = 0;
}
else {
(**(code **)(_exit + 0x50))
(_exit,&local_24,0,0,0,0,"/data/src/engine/./disp_interface.cpp",0x27d,
&DispInfo_GetVisibleDispsAndAddOverlayFragmentsToRenderList(int,msurface2_t**,int,CDispInfo**,int&)
::tm_fmt,"(%s)%s","Unaccounted",
"DispInfo_GetVisibleDispsAndAddOverlayFragmentsToRenderList");
local_10 = _exit;
}
iVar1 = _DAT_0040b9d4;
local_18 = local_24;
local_14 = local_20;
if ((_DAT_0040b028 != 0) || (DAT_0040b02c == '\0')) {
/* try { // try from 00137b0d to 00137b11 has its CatchHandler @ 00137c0e */
iVar3 = ThreadGetCurrentId();
if (iVar1 == iVar3) {
if ((char *)*_DAT_0040b030 != "DispInfo_GetVisibleDispsAndAddOverlayFragmentsToRenderList") {
/* try { // try from 00137bf0 to 00137c01 has its CatchHandler @ 00137c0e */
_DAT_0040b030 =
(int *)CVProfNode::GetSubNode((char *)_DAT_0040b030,0x2acbe0,&DAT_00000001,0x2a054b);
}
CVProfNode::EnterScope();
DAT_0040b02c = '\0';
}
}
*param_5 = 0;
iVar1 = _DAT_0040b9d4;
if ((DAT_0040b02c == '\0') || (_DAT_0040b028 != 0)) {
iVar3 = ThreadGetCurrentId();
if (iVar1 == iVar3) {
cVar2 = CVProfNode::ExitScope();
if (cVar2 != '\0') {
_DAT_0040b030 = (int *)_DAT_0040b030[0x19];
}
DAT_0040b02c = _DAT_0040b030 == (int *)0x40b034;
}
}
if (local_10 != 0) {
(**(code **)(local_10 + 0x54))(local_10,local_18,local_14,0,0,0);
}
return;
}
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.