mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-09-18 07:48:04 +02:00
Execute 'autoexec' and 'autoexec_dev' after server and client to override any ConVar's more easily
This commit is contained in:
@@ -31,15 +31,15 @@ void __fastcall HFrameStageNotify(CHLClient* rcx, ClientFrameStage_t frameStage)
|
||||
|
||||
if (!g_pCmdLine->CheckParm("-devsdk"))
|
||||
{
|
||||
IVEngineClient_CommandExecute(NULL, "exec autoexec.cfg");
|
||||
IVEngineClient_CommandExecute(NULL, "exec autoexec_server.cfg");
|
||||
IVEngineClient_CommandExecute(NULL, "exec autoexec_client.cfg");
|
||||
IVEngineClient_CommandExecute(NULL, "exec autoexec.cfg");
|
||||
}
|
||||
else // Development configs.
|
||||
{
|
||||
IVEngineClient_CommandExecute(NULL, "exec autoexec_dev.cfg");
|
||||
IVEngineClient_CommandExecute(NULL, "exec autoexec_server_dev.cfg");
|
||||
IVEngineClient_CommandExecute(NULL, "exec autoexec_client_dev.cfg");
|
||||
IVEngineClient_CommandExecute(NULL, "exec autoexec_dev.cfg");
|
||||
}
|
||||
|
||||
*(bool*)m_bRestrictServerCommands = true; // Restrict commands.
|
||||
|
@@ -134,19 +134,19 @@ void HCHostState_FrameUpdate(void* rcx, void* rdx, float time)
|
||||
|
||||
if (!g_pCmdLine->CheckParm("-devsdk"))
|
||||
{
|
||||
IVEngineClient_CommandExecute(NULL, "exec autoexec.cfg");
|
||||
IVEngineClient_CommandExecute(NULL, "exec autoexec_server.cfg");
|
||||
#ifndef DEDICATED
|
||||
IVEngineClient_CommandExecute(NULL, "exec autoexec_client.cfg");
|
||||
#endif // !DEDICATED
|
||||
IVEngineClient_CommandExecute(NULL, "exec autoexec.cfg");
|
||||
}
|
||||
else // Development configs.
|
||||
{
|
||||
IVEngineClient_CommandExecute(NULL, "exec autoexec_dev.cfg");
|
||||
IVEngineClient_CommandExecute(NULL, "exec autoexec_server_dev.cfg");
|
||||
#ifndef DEDICATED
|
||||
IVEngineClient_CommandExecute(NULL, "exec autoexec_client_dev.cfg");
|
||||
#endif // !DEDICATED
|
||||
IVEngineClient_CommandExecute(NULL, "exec autoexec_dev.cfg");
|
||||
}
|
||||
|
||||
*(bool*)m_bRestrictServerCommands = true; // Restrict commands.
|
||||
|
Reference in New Issue
Block a user