Browse Source

engine: fix windows dedicated build

dedicated-build-fix
nillerusr 2 years ago
parent
commit
168e52e428
  1. 8
      engine/matsys_interface.cpp

8
engine/matsys_interface.cpp

@ -269,6 +269,8 @@ static const char *s_pRegistryConVars[] = @@ -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 ) @@ -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 @@ -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 ) @@ -718,7 +723,8 @@ void OverrideMaterialSystemConfig( MaterialSystem_Config_t &config )
WriteVideoConfigInt( "ScreenWindowed", 1 );
config.SetFlag( MATSYS_VIDCFG_FLAGS_WINDOWED, true );
}
}
#endif
}
void HandleServerAllowColorCorrection()

Loading…
Cancel
Save