_GLOBAL__sub_I_g_pServerBenchmark
0x00375d50 · 565 bytes · unknown
Decompiled
undefined (0 params)
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void _GLOBAL__sub_I_g_pServerBenchmark(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 *)sv_benchmark_numticks,"sv_benchmark_numticks","3300",0,
"If > 0, then it only runs the benchmark for this # of ticks.");
__cxa_atexit(ConVar::~ConVar,sv_benchmark_numticks,&__dso_handle);
ConVar::ConVar((ConVar *)sv_benchmark_autovprofrecord,"sv_benchmark_autovprofrecord","0",0,
"If running a benchmark and this is set, it will record a vprof file over the duration of the benchmark with filename benchmark.vprof."
);
__cxa_atexit(ConVar::~ConVar,sv_benchmark_autovprofrecord,&__dso_handle);
g_ServerBenchmark = &PTR_StartBenchmark_00bf99e8;
_DAT_00f7202c = 0;
_DAT_00f72030 = 0;
_DAT_00f72034 = 0;
_DAT_00f72038 = 0;
_DAT_00f7203c = 0;
_DAT_00f72040 = 0;
_DAT_00f72044 = 0;
_DAT_00f72048 = 0;
_DAT_00f7204c = 0;
_DAT_00f72050 = 0;
/* try { // try from 00375ef0 to 00375f12 has its CatchHandler @ 00375f85 */
CUniformRandomStream::CUniformRandomStream((CUniformRandomStream *)&DAT_00f72058);
_DAT_00f72004 = 0;
CUniformRandomStream::SetSeed(0xf72058);
__cxa_atexit(CServerBenchmark::~CServerBenchmark,&g_ServerBenchmark,&__dso_handle);
ConCommand::ConCommand
((ConCommand *)sv_benchmark_force_start_command,"sv_benchmark_force_start",
sv_benchmark_force_start,
"Force start the benchmark. This is only for debugging. It\'s better to set sv_benchmark to 1 and restart the level."
,0,(int_____char_const__char *)0x0);
__cxa_atexit(ConCommand::~ConCommand,sv_benchmark_force_start_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.