_GLOBAL__sub_I_steamapicontext
0x003a2560 · 1947 bytes · unknown
Decompiled
undefined (0 params)
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void _GLOBAL__sub_I_steamapicontext(void)
{
int iVar1;
undefined4 *puVar2;
byte bVar3;
char *local_1c;
char *local_18;
char *local_14;
char *local_10;
bVar3 = 0;
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;
InterfaceReg::InterfaceReg
((InterfaceReg *)__g_CreateCServerGameTagsIServerGameTags_reg,
__CreateCServerGameTagsIServerGameTags_interface,"ServerGameTags001");
puVar2 = &s_SteamAPIContext;
for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + (uint)bVar3 * -2 + 1;
}
puVar2 = &s_SteamGameServerAPIContext;
for (iVar1 = 8; iVar1 != 0; iVar1 = iVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + (uint)bVar3 * -2 + 1;
}
CTimedEventMgr::CTimedEventMgr((CTimedEventMgr *)g_NetworkPropertyEventMgr);
__cxa_atexit(CTimedEventMgr::~CTimedEventMgr,g_NetworkPropertyEventMgr,&__dso_handle);
DAT_00fe311e = 0xffff;
_DAT_00fe311a = 0;
DAT_00fe3114 = 0xffff;
_DAT_00fe3116 = 0xffff;
DAT_00fe3118 = 0xffff;
g_MapEntityRefs = 0;
DAT_00fe310c = 0;
_DAT_00fe3110 = 0;
_DAT_00fe311c = 0;
_DAT_00fe3120 = 0;
__cxa_atexit(CUtlLinkedList<CMapEntityRef,unsigned_short,false,unsigned_short,CUtlMemory<UtlLinkedListElem_t<CMapEntityRef,unsigned_short>,unsigned_short>>
::~CUtlLinkedList,&g_MapEntityRefs,&__dso_handle);
ConVar::ConVar((ConVar *)sv_no_navmesh,"sv_no_navmesh","0",0x4002,
"Block loading of the navmesh. Unplayable, only used for memory sampling.");
__cxa_atexit(ConVar::~ConVar,sv_no_navmesh,&__dso_handle);
ConVar::ConVar((ConVar *)sv_massreport,"sv_massreport","0",0);
__cxa_atexit(ConVar::~ConVar,sv_massreport,&__dso_handle);
ConVar::ConVar((ConVar *)sv_force_transmit_ents,"sv_force_transmit_ents","0",0x4002,
"Will transmit all entities to client, regardless of PVS conditions (will still skip based on transmit flags, however)."
);
__cxa_atexit(ConVar::~ConVar,sv_force_transmit_ents,&__dso_handle);
ConVar::ConVar((ConVar *)sv_autosave,"sv_autosave","1",0,
"Set to 1 to autosave game on level transition. Does not affect autosave triggers."
);
__cxa_atexit(ConVar::~ConVar,sv_autosave,&__dso_handle);
ConVar::ConVar((ConVar *)ent_steadystate_delay,"ent_steadystate_delay","5",0,
"Time in seconds without network state changes until an entity is considered for trickle updates"
);
__cxa_atexit(ConVar::~ConVar,ent_steadystate_delay,&__dso_handle);
ConVar::ConVar((ConVar *)ent_steadystate_enable,"ent_steadystate_enable","1",0);
__cxa_atexit(ConVar::~ConVar,ent_steadystate_enable,&__dso_handle);
ConVar::ConVar((ConVar *)ent_steadystate_cooldown,"ent_steadystate_cooldown","5.0",0,
"Time in seconds after player state changes before steady state changes can occur."
);
__cxa_atexit(ConVar::~ConVar,ent_steadystate_cooldown,&__dso_handle);
ConVar::ConVar((ConVar *)debug_l4dverbose,"debug_l4dverbose","1",0,
"Add more l4d specific data to the bug report.");
__cxa_atexit(ConVar::~ConVar,debug_l4dverbose,&__dso_handle);
g_VguiScreenStringOps._0_4_ = &PTR_Save_00c91a40;
puVar2 = &s_Steam3Server;
for (iVar1 = 8; iVar1 != 0; iVar1 = iVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + (uint)bVar3 * -2 + 1;
}
*(undefined1 *)puVar2 = 0;
ConVar::ConVar((ConVar *)sv_showhitboxes,"sv_showhitboxes","-1",0x4000,
"Send server-side hitboxes for specified entity to client (NOTE: this uses lots of bandwidth, use on listen server only)."
);
__cxa_atexit(ConVar::~ConVar,sv_showhitboxes,&__dso_handle);
ConVar::ConVar((ConVar *)ai_post_frame_navigation,"ai_post_frame_navigation","0",0);
__cxa_atexit(ConVar::~ConVar,ai_post_frame_navigation,&__dso_handle);
ConCommand::ConCommand
((ConCommand *)sv_showhitboxes_cursor_command,"sv_showhitboxes_cursor",
sv_showhitboxes_cursor,"Show the hitboxes of the pointed-at entity",0x4000,
(int_____char_const__char *)0x0);
__cxa_atexit(ConCommand::~ConCommand,sv_showhitboxes_cursor_command,&__dso_handle);
ConVar::ConVar((ConVar *)sv_threaded_init,"sv_threaded_init","0",0);
__cxa_atexit(ConVar::~ConVar,sv_threaded_init,&__dso_handle);
g_ServerGameDLL._0_4_ = &PTR_DLLInit_00c91b28;
InterfaceReg::InterfaceReg
((InterfaceReg *)__g_CreateCServerGameDLLIServerGameDLL_reg,
__CreateCServerGameDLLIServerGameDLL_interface,"ServerGameDLL005");
g_RestoredEntities = 0;
DAT_00fe32b8 = 0;
DAT_00fe32bc = 0;
DAT_00fe32c0 = 0;
_DAT_00fe32c4 = 0;
__cxa_atexit(CUtlVector<CHandle<CBaseEntity>,CUtlMemory<CHandle<CBaseEntity>,int>>::~CUtlVector,
&g_RestoredEntities,&__dso_handle);
ConVar::ConVar((ConVar *)trace_report,"trace_report","0",0);
__cxa_atexit(ConVar::~ConVar,trace_report,&__dso_handle);
ConVar::ConVar((ConVar *)motdfile,"motdfile","motd.txt",0x80000,"The MOTD file to load.",
ValidateMOTDFilename);
__cxa_atexit(ConVar::~ConVar,motdfile,&__dso_handle);
ConVar::ConVar((ConVar *)hostfile,"hostfile","host.txt",0x80000,"The HOST file to load.",
ValidateMOTDFilename);
__cxa_atexit(ConVar::~ConVar,hostfile,&__dso_handle);
ConVar::ConVar((ConVar *)sv_unlockedchapters,"sv_unlockedchapters","1",0x80);
__cxa_atexit(ConVar::~ConVar,sv_unlockedchapters,&__dso_handle);
__cxa_atexit(CServerGameEnts::~CServerGameEnts,&__g_CServerGameEnts_singleton,&__dso_handle);
InterfaceReg::InterfaceReg
((InterfaceReg *)__g_CreateCServerGameEntsIServerGameEnts_reg,
__CreateCServerGameEntsIServerGameEnts_interface,"ServerGameEnts001");
InterfaceReg::InterfaceReg
((InterfaceReg *)__g_CreateCServerGameClientsIServerGameClients_reg,
__CreateCServerGameClientsIServerGameClients_interface,"ServerGameClients003");
__g_CServerDLLSharedAppSystems_singleton._0_4_ = &PTR_Count_00c91c80;
__g_CServerDLLSharedAppSystems_singleton._4_4_ = 0;
__g_CServerDLLSharedAppSystems_singleton._8_4_ = 0;
__g_CServerDLLSharedAppSystems_singleton._12_4_ = 0;
__g_CServerDLLSharedAppSystems_singleton._16_4_ = 0;
__g_CServerDLLSharedAppSystems_singleton._20_4_ = 0;
local_14 = "soundemittersystem_srv.so";
local_10 = "VSoundEmitter003";
/* try { // try from 003a2c8d to 003a2cbb has its CatchHandler @ 003a2cfb */
CUtlVector<AppSystemInfo_t,CUtlMemory<AppSystemInfo_t,int>>::InsertBefore
((CUtlVector<AppSystemInfo_t,CUtlMemory<AppSystemInfo_t,int>> *)
(__g_CServerDLLSharedAppSystems_singleton + 4),0,(AppSystemInfo_t *)&local_14);
local_1c = "scenefilecache_srv.so";
local_18 = "SceneFileCache002";
CUtlVector<AppSystemInfo_t,CUtlMemory<AppSystemInfo_t,int>>::InsertBefore
((CUtlVector<AppSystemInfo_t,CUtlMemory<AppSystemInfo_t,int>> *)
(__g_CServerDLLSharedAppSystems_singleton + 4),
__g_CServerDLLSharedAppSystems_singleton._16_4_,(AppSystemInfo_t *)&local_1c);
__cxa_atexit(CServerDLLSharedAppSystems::~CServerDLLSharedAppSystems,
__g_CServerDLLSharedAppSystems_singleton,&__dso_handle);
InterfaceReg::InterfaceReg
((InterfaceReg *)__g_CreateCServerDLLSharedAppSystemsIServerDLLSharedAppSystems_reg,
__CreateCServerDLLSharedAppSystemsIServerDLLSharedAppSystems_interface,
"VServerDllSharedAppSystems001");
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.