_GLOBAL__sub_I_mem_min_heapsize
0x000a34b0 · 783 bytes · unknown
Decompiled
undefined (0 params)
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void _GLOBAL__sub_I_mem_min_heapsize(void)
{
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;
UNSPECIFIED_LOGGING_COLOR = 0;
ConVar::ConVar((ConVar *)mem_min_heapsize,"mem_min_heapsize","48",0,
"Minimum amount of memory to dedicate to engine hunk and datacache (in mb)");
__cxa_atexit(ConVar::~ConVar,mem_min_heapsize,&__dso_handle);
ConVar::ConVar((ConVar *)mem_max_heapsize,"mem_max_heapsize","256",0,
"Maximum amount of memory to dedicate to engine hunk and datacache (in mb)");
__cxa_atexit(ConVar::~ConVar,mem_max_heapsize,&__dso_handle);
ConVar::ConVar((ConVar *)mem_max_heapsize_dedicated,"mem_max_heapsize_dedicated","64",0,
"Maximum amount of memory to dedicate to engine hunk and datacache, for dedicated server (in mb)"
);
__cxa_atexit(ConVar::~ConVar,mem_max_heapsize_dedicated,&__dso_handle);
LOG_ServerLog = LoggingSystem_RegisterLoggingChannel("ServerLog",0,2,0,UNSPECIFIED_LOGGING_COLOR);
ConVar::ConVar((ConVar *)sys_minidumpspewlines,"sys_minidumpspewlines","500",0x80000,
"Lines of crash dump console spew to keep.");
__cxa_atexit(ConVar::~ConVar,sys_minidumpspewlines,&__dso_handle);
_DAT_003eca62 = 0xffff;
_DAT_003eca5c = 0xffff;
_DAT_003eca5e = 0;
_DAT_003eca58 = 0xffff;
DAT_003eca5a = 0xffff;
g_SpewHistory = 0;
_DAT_003eca50 = 0;
_DAT_003eca54 = 0;
_DAT_003eca60 = 0;
_DAT_003eca64 = 0;
__cxa_atexit(CUtlLinkedList<CUtlString,unsigned_short,false,unsigned_short,CUtlMemory<UtlLinkedListElem_t<CUtlString,unsigned_short>,unsigned_short>>
::~CUtlLinkedList,&g_SpewHistory,&__dso_handle);
g_SpewMutex = 0;
DAT_003eca48 = 0;
ConVar::ConVar((ConVar *)spew_consolelog_to_debugstring,"spew_consolelog_to_debugstring","0",0,
"Send console log to PLAT_DebugString()");
__cxa_atexit(ConVar::~ConVar,spew_consolelog_to_debugstring,&__dso_handle);
ConCommand::ConCommand
((ConCommand *)star_memory_command,"star_memory",star_memory,"Dump memory stats",0,
(int_____char_const__char *)0x0);
__cxa_atexit(ConCommand::~ConCommand,star_memory_command,&__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.