From 807eaae8508a3f7f67246b64bff714b0a091ff2c 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 ebf4d937..9218874d 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;