mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-09 03:24:52 +00:00
Merge ebec4309e4
into 0565403b15
This commit is contained in:
commit
9b4d85bf9e
2 changed files with 18 additions and 9 deletions
|
@ -476,9 +476,19 @@ public:
|
|||
}
|
||||
else
|
||||
{
|
||||
AssertMsg( 0, "Unknown game" );
|
||||
#if defined(TF_CLIENT_DLL)
|
||||
//assume tf2
|
||||
*ppShortGameName = "TF2";
|
||||
*ppFullGameName = "Team Fortress 2";
|
||||
#elif defined(CSTRIKE_DLL)
|
||||
//assume cstrike
|
||||
*ppShortGameName = "CSS";
|
||||
*ppFullGameName = "Counter-Strike: Source";
|
||||
#else
|
||||
AssertMsg(0, "Unknown game");
|
||||
*ppShortGameName = "";
|
||||
*ppFullGameName = "";
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -2040,16 +2040,15 @@ void CViewRender::RenderView( const CViewSetup &viewRender, int nClearFlags, int
|
|||
{
|
||||
// We know they were running at least 8.0 when the game started...we check the
|
||||
// value in ClientDLL_Init()...so they must be messing with their DirectX settings.
|
||||
if ( ( Q_stricmp( COM_GetModDirectory(), "tf" ) == 0 ) || ( Q_stricmp( COM_GetModDirectory(), "tf_beta" ) == 0 ) )
|
||||
#ifdef TF_CLIENT_DLL
|
||||
static bool bFirstTime = true;
|
||||
if (bFirstTime)
|
||||
{
|
||||
static bool bFirstTime = true;
|
||||
if ( bFirstTime )
|
||||
{
|
||||
bFirstTime = false;
|
||||
Msg( "This game has a minimum requirement of DirectX 8.0 to run properly.\n" );
|
||||
}
|
||||
return;
|
||||
bFirstTime = false;
|
||||
Msg("This game has a minimum requirement of DirectX 8.0 to run properly.\n");
|
||||
}
|
||||
return;
|
||||
#endif
|
||||
}
|
||||
|
||||
CMatRenderContextPtr pRenderContext( materials );
|
||||
|
|
Loading…
Reference in a new issue