mirror of
https://github.com/nillerusr/source-engine.git
synced 2025-01-12 16:18:03 +00:00
Pretend macOS to be Linux in KeyValues (#145)
Workaround for FL_Load_Glyph error
This commit is contained in:
parent
a1c4e27718
commit
807eaae850
@ -2208,10 +2208,10 @@ bool EvaluateConditional( const char *str )
|
|||||||
return IsWindows() ^ bNot;
|
return IsWindows() ^ bNot;
|
||||||
|
|
||||||
if ( Q_stristr( str, "$OSX" ) )
|
if ( Q_stristr( str, "$OSX" ) )
|
||||||
return IsOSX() ^ bNot;
|
return bNot;
|
||||||
|
|
||||||
if ( Q_stristr( str, "$LINUX" ) )
|
if ( Q_stristr( str, "$LINUX" ) )
|
||||||
return IsLinux() ^ bNot;
|
return (IsLinux() || IsOSX()) ^ bNot;
|
||||||
|
|
||||||
if ( Q_stristr( str, "$POSIX" ) )
|
if ( Q_stristr( str, "$POSIX" ) )
|
||||||
return IsPosix() ^ bNot;
|
return IsPosix() ^ bNot;
|
||||||
|
Loading…
Reference in New Issue
Block a user