From d650687054b4860274e0424e45caa82cb149d579 Mon Sep 17 00:00:00 2001 From: Star1xr Date: Thu, 14 May 2026 23:54:32 +0300 Subject: [PATCH] Fix: removed the redundant IsSteamDeck() implementation from cdll_client_int.cpp, as it's already defined in tier1/KeyValues.cpp --- game/client/cdll_client_int.cpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/game/client/cdll_client_int.cpp b/game/client/cdll_client_int.cpp index c9e69538..f2676470 100644 --- a/game/client/cdll_client_int.cpp +++ b/game/client/cdll_client_int.cpp @@ -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