mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-05-15 15:40:16 +00:00
Fix: removed the redundant IsSteamDeck() implementation
from cdll_client_int.cpp, as it's already defined in tier1/KeyValues.cpp
This commit is contained in:
parent
5b5a5da8df
commit
d650687054
@ -353,24 +353,6 @@ class IClientPurchaseInterfaceV2 *g_pClientPurchaseInterface = (class IClientPur
|
||||
|
||||
static ConVar *g_pcv_ThreadMode = NULL;
|
||||
|
||||
// GAMEPADUI TODO - put this somewhere better. (Madi)
|
||||
#if defined( GAMEPADUI )
|
||||
const bool IsSteamDeck()
|
||||
{
|
||||
if ( CommandLine()->FindParm( "-gamepadui" ) )
|
||||
return true;
|
||||
|
||||
if ( CommandLine()->FindParm( "-nogamepadui" ) )
|
||||
return false;
|
||||
|
||||
const char *pszSteamDeckEnv = getenv( "SteamDeck" );
|
||||
if ( pszSteamDeckEnv && *pszSteamDeckEnv )
|
||||
return atoi( pszSteamDeckEnv ) != 0;
|
||||
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: interface for gameui to modify voice bans
|
||||
|
||||
Loading…
Reference in New Issue
Block a user