tier1: exclude steam deck from KeyValues
This commit is contained in:
parent
55ba87f223
commit
ae1dbaf5f7
1 changed files with 7 additions and 4 deletions
|
@ -2195,24 +2195,27 @@ bool EvaluateConditional( const char *str )
|
||||||
if ( *str == '!' )
|
if ( *str == '!' )
|
||||||
bNot = true;
|
bNot = true;
|
||||||
|
|
||||||
|
if( Q_stristr( str, "$DECK" ) )
|
||||||
|
return false ^ bNot; // Steam deck unsupported
|
||||||
|
|
||||||
if ( Q_stristr( str, "$X360" ) )
|
if ( Q_stristr( str, "$X360" ) )
|
||||||
return IsX360() ^ bNot;
|
return IsX360() ^ bNot;
|
||||||
|
|
||||||
if ( Q_stristr( str, "$WIN32" ) )
|
if ( Q_stristr( str, "$WIN32" ) )
|
||||||
return IsPC() ^ bNot; // hack hack - for now WIN32 really means IsPC
|
return IsPC() ^ bNot; // hack hack - for now WIN32 really means IsPC
|
||||||
|
|
||||||
if ( Q_stristr( str, "$WINDOWS" ) )
|
if ( Q_stristr( str, "$WINDOWS" ) )
|
||||||
return IsWindows() ^ bNot;
|
return IsWindows() ^ bNot;
|
||||||
|
|
||||||
if ( Q_stristr( str, "$OSX" ) )
|
if ( Q_stristr( str, "$OSX" ) )
|
||||||
return IsOSX() ^ bNot;
|
return IsOSX() ^ bNot;
|
||||||
|
|
||||||
if ( Q_stristr( str, "$LINUX" ) )
|
if ( Q_stristr( str, "$LINUX" ) )
|
||||||
return IsLinux() ^ bNot;
|
return IsLinux() ^ bNot;
|
||||||
|
|
||||||
if ( Q_stristr( str, "$POSIX" ) )
|
if ( Q_stristr( str, "$POSIX" ) )
|
||||||
return IsPosix() ^ bNot;
|
return IsPosix() ^ bNot;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue