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:
Star1xr 2026-05-14 23:54:32 +03:00
parent 5b5a5da8df
commit d650687054

View File

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