This commit is contained in:
Bitl 2025-04-04 18:51:27 +03:00 committed by GitHub
commit 9b4d85bf9e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 9 deletions

View file

@ -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
}
}

View file

@ -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 );