|
|
|
@ -2195,24 +2195,27 @@ bool EvaluateConditional( const char *str )
@@ -2195,24 +2195,27 @@ bool EvaluateConditional( const char *str )
|
|
|
|
|
if ( *str == '!' ) |
|
|
|
|
bNot = true; |
|
|
|
|
|
|
|
|
|
if( Q_stristr( str, "$DECK" ) ) |
|
|
|
|
return false ^ bNot; // Steam deck unsupported
|
|
|
|
|
|
|
|
|
|
if ( Q_stristr( str, "$X360" ) ) |
|
|
|
|
return IsX360() ^ bNot; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ( Q_stristr( str, "$WIN32" ) ) |
|
|
|
|
return IsPC() ^ bNot; // hack hack - for now WIN32 really means IsPC
|
|
|
|
|
|
|
|
|
|
if ( Q_stristr( str, "$WINDOWS" ) ) |
|
|
|
|
return IsWindows() ^ bNot; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ( Q_stristr( str, "$OSX" ) ) |
|
|
|
|
return IsOSX() ^ bNot; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ( Q_stristr( str, "$LINUX" ) ) |
|
|
|
|
return IsLinux() ^ bNot; |
|
|
|
|
|
|
|
|
|
if ( Q_stristr( str, "$POSIX" ) ) |
|
|
|
|
return IsPosix() ^ bNot; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|