mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-22 06:06:50 +00:00
engine: fix windows dedicated build
This commit is contained in:
parent
d7ba172ece
commit
168e52e428
@ -269,6 +269,8 @@ static const char *s_pRegistryConVars[] =
|
||||
static CThreadMutex g_VideoConfigMutex;
|
||||
#endif
|
||||
|
||||
#ifndef DEDICATED
|
||||
|
||||
static int ReadVideoConfigInt( const char *pName, int nDefault )
|
||||
{
|
||||
#if USE_VIDEOCONFIG_FILE
|
||||
@ -379,6 +381,8 @@ static void WriteVideoConfigString( const char *pName, const char *pString )
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Scan for video config convars which are overridden on the cmd line, used
|
||||
// for development and automated timedemo regression testing.
|
||||
@ -685,6 +689,7 @@ static void OverrideMaterialSystemConfigFromCommandLine( MaterialSystem_Config_t
|
||||
//-----------------------------------------------------------------------------
|
||||
void OverrideMaterialSystemConfig( MaterialSystem_Config_t &config )
|
||||
{
|
||||
#ifndef DEDICATED
|
||||
// enable/disable flashlight support based on mod (user can also set this explicitly)
|
||||
// FIXME: this is only here because dxsupport_override.cfg is currently broken
|
||||
ConVarRef mat_supportflashlight( "mat_supportflashlight" );
|
||||
@ -718,7 +723,8 @@ void OverrideMaterialSystemConfig( MaterialSystem_Config_t &config )
|
||||
WriteVideoConfigInt( "ScreenWindowed", 1 );
|
||||
config.SetFlag( MATSYS_VIDCFG_FLAGS_WINDOWED, true );
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
void HandleServerAllowColorCorrection()
|
||||
|
Loading…
Reference in New Issue
Block a user