mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Swap preprocessor directive with global
Since launcher does not get compiled with the engine, the dedicated check has to be performed using the global instead.
This commit is contained in:
parent
ab3abce664
commit
04ed774c46
@ -10,6 +10,7 @@
|
|||||||
#include "tier0/commandline.h"
|
#include "tier0/commandline.h"
|
||||||
#include "tier1/strtools.h"
|
#include "tier1/strtools.h"
|
||||||
#include "launcher/launcher.h"
|
#include "launcher/launcher.h"
|
||||||
|
#include <eiface.h>
|
||||||
|
|
||||||
int HWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
|
int HWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
|
||||||
{
|
{
|
||||||
@ -74,20 +75,22 @@ void RemoveSpuriousGameParameters()
|
|||||||
// as all there are required to run the game with the game sdk.
|
// as all there are required to run the game with the game sdk.
|
||||||
void AppendSDKParametersPreInit()
|
void AppendSDKParametersPreInit()
|
||||||
{
|
{
|
||||||
#ifdef DEDICATED
|
if (s_bIsDedicated)
|
||||||
CommandLine()->AppendParm("-collate", "");
|
{
|
||||||
CommandLine()->AppendParm("-multiple", "");
|
CommandLine()->AppendParm("-collate", "");
|
||||||
CommandLine()->AppendParm("-noorigin", "");
|
CommandLine()->AppendParm("-multiple", "");
|
||||||
CommandLine()->AppendParm("-nodiscord", "");
|
CommandLine()->AppendParm("-noorigin", "");
|
||||||
CommandLine()->AppendParm("-noshaderapi", "");
|
CommandLine()->AppendParm("-nodiscord", "");
|
||||||
CommandLine()->AppendParm("-nobakedparticles", "");
|
CommandLine()->AppendParm("-noshaderapi", "");
|
||||||
CommandLine()->AppendParm("-novid", "");
|
CommandLine()->AppendParm("-nobakedparticles", "");
|
||||||
CommandLine()->AppendParm("-nomenuvid", "");
|
CommandLine()->AppendParm("-novid", "");
|
||||||
CommandLine()->AppendParm("-nosound", "");
|
CommandLine()->AppendParm("-nomenuvid", "");
|
||||||
CommandLine()->AppendParm("-nomouse", "");
|
CommandLine()->AppendParm("-nosound", "");
|
||||||
CommandLine()->AppendParm("-nojoy", "");
|
CommandLine()->AppendParm("-nomouse", "");
|
||||||
CommandLine()->AppendParm("-nosendtable", "");
|
CommandLine()->AppendParm("-nojoy", "");
|
||||||
#endif
|
CommandLine()->AppendParm("-nosendtable", "");
|
||||||
|
}
|
||||||
|
|
||||||
// Assume default configs if the game isn't launched with the SDKLauncher.
|
// Assume default configs if the game isn't launched with the SDKLauncher.
|
||||||
if (!CommandLine()->FindParm("-launcher"))
|
if (!CommandLine()->FindParm("-launcher"))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user