From c8920cf1c2cc95e6eee1fb8b3cb591be8d59ad5d Mon Sep 17 00:00:00 2001 From: exstrim401 Date: Thu, 24 Nov 2022 20:29:11 +0300 Subject: [PATCH] Pretend macOS to be Linux in KeyValues (#145) Workaround for FL_Load_Glyph error --- tier1/KeyValues.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tier1/KeyValues.cpp b/tier1/KeyValues.cpp index ebf4d93795..9218874d14 100644 --- a/tier1/KeyValues.cpp +++ b/tier1/KeyValues.cpp @@ -2208,10 +2208,10 @@ bool EvaluateConditional( const char *str ) return IsWindows() ^ bNot; if ( Q_stristr( str, "$OSX" ) ) - return IsOSX() ^ bNot; + return bNot; if ( Q_stristr( str, "$LINUX" ) ) - return IsLinux() ^ bNot; + return (IsLinux() || IsOSX()) ^ bNot; if ( Q_stristr( str, "$POSIX" ) ) return IsPosix() ^ bNot;