_GLOBAL__sub_I_mat_loadtextures
0x0009c8b0 · 1229 bytes · unknown
Decompiled
undefined (0 params)
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void _GLOBAL__sub_I_mat_loadtextures(void)
{
UNSPECIFIED_LOGGING_COLOR._0_1_ = 0;
UNSPECIFIED_LOGGING_COLOR._1_1_ = 0;
UNSPECIFIED_LOGGING_COLOR._2_1_ = 0;
UNSPECIFIED_LOGGING_COLOR._3_1_ = 0;
vec2_origin._0_4_ = 0;
vec2_origin._4_4_ = 0;
vec2_invalid._0_4_ = 0x7f7fffff;
vec2_invalid._4_4_ = 0x7f7fffff;
vec4_origin._0_4_ = 0;
vec4_origin._4_4_ = 0;
vec4_origin._8_4_ = 0;
vec4_origin._12_4_ = 0;
vec4_invalid._0_4_ = 0x7f7fffff;
vec4_invalid._4_4_ = 0x7f7fffff;
vec4_invalid._8_4_ = 0x7f7fffff;
vec4_invalid._12_4_ = 0x7f7fffff;
ConVar::ConVar((ConVar *)mat_loadtextures,"mat_loadtextures","1",0x4000);
__cxa_atexit(ConVar::~ConVar,mat_loadtextures,&__dso_handle);
ConVar::ConVar((ConVar *)mod_touchalldata,"mod_touchalldata","1",0,
"Touch model data during level startup");
__cxa_atexit(ConVar::~ConVar,mod_touchalldata,&__dso_handle);
ConVar::ConVar((ConVar *)mod_forcetouchdata,"mod_forcetouchdata","1",0,
"Forces all model file data into cache on model load.");
__cxa_atexit(ConVar::~ConVar,mod_forcetouchdata,&__dso_handle);
ConVar::ConVar((ConVar *)mat_excludetextures,"mat_excludetextures","0",0);
__cxa_atexit(ConVar::~ConVar,mat_excludetextures,&__dso_handle);
ConVar::ConVar((ConVar *)r_unloadlightmaps,"r_unloadlightmaps","0",0);
__cxa_atexit(ConVar::~ConVar,r_unloadlightmaps,&__dso_handle);
ConVar::ConVar((ConVar *)r_hunkalloclightmaps,"r_hunkalloclightmaps","1",0);
__cxa_atexit(ConVar::~ConVar,r_hunkalloclightmaps,&__dso_handle);
g_GameLumpDict = 0;
_DAT_003a8de8 = 0;
_DAT_003a8dec = 0;
_DAT_003a8df0 = 0;
_DAT_003a8df4 = 0;
__cxa_atexit(CUtlVector<dgamelump_t,CUtlMemory<dgamelump_t,int>>::~CUtlVector,&g_GameLumpDict,
&__dso_handle);
lump_t_DataDescInit::g_DataMapHolder = DataMapInit<lump_t>((lump_t *)0x0);
BSPHeader_t_DataDescInit::g_DataMapHolder = DataMapInit<BSPHeader_t>((BSPHeader_t *)0x0);
g_ModelLoader = &PTR_Init_002b9208;
_DAT_003a8b24 = Model_LessFunc;
_DAT_003a8b28 = 0;
_DAT_003a8b2c = 0;
_DAT_003a8b30 = 0;
_DAT_003a8b34 = 0xffff;
_DAT_003a8b36 = 0;
_DAT_003a8b38 = 0xffff;
_DAT_003a8b3a = 0xffff;
_DAT_003a8b3c = 0;
/* try { // try from 0009cbe2 to 0009cbe6 has its CatchHandler @ 0009cd7d */
CUtlMemoryPool::CUtlMemoryPool
((CUtlMemoryPool *)&DAT_003a8b40,0x14c,0x400,1,"CModelLoader::m_ModelPool",0);
_DAT_003a8b70 = 0;
_DAT_003a8b74 = 0;
_DAT_003a8b78 = 0;
_DAT_003a8b7c = 0;
_DAT_003a8b80 = 0;
_DAT_003a8cbc = 0;
_DAT_003a8cc0 = 0;
_DAT_003a8cc4 = 0;
DAT_003a8cc8 = 0;
_DAT_003a8ccc = 0;
__cxa_atexit(CModelLoader::~CModelLoader,&g_ModelLoader,&__dso_handle);
CUtlBuffer::CUtlBuffer((CUtlBuffer *)&s_MapBuffer,0,0,0);
__cxa_atexit(CUtlBuffer::~CUtlBuffer,&s_MapBuffer,&__dso_handle);
ConCommand::ConCommand
((ConCommand *)mem_vcollide_command,"mem_vcollide",mem_vcollide,
"Dumps the memory used by vcollides",0,(int_____char_const__char *)0x0);
__cxa_atexit(ConCommand::~ConCommand,mem_vcollide_command,&__dso_handle);
ConVar::ConVar((ConVar *)phys2_dump_runtime_sizes,"phys2_dump_runtime_sizes","0",0x6000);
__cxa_atexit(ConVar::~ConVar,phys2_dump_runtime_sizes,&__dso_handle);
ConVar::ConVar((ConVar *)phys2_preload_models,"phys2_preload_models","1",0x6000);
__cxa_atexit(ConVar::~ConVar,phys2_preload_models,&__dso_handle);
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.
⚠ This function has no mangled symbol — it may be internal/static. The
Linux gamedata field uses @-prefix symbol resolution which
requires an exported mangled name. You'll need a Linux byte signature
for this one (extract via extract_signature.java).
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.