From 98d507d0a57dcd9deee73e2d9cf143a368fecbe7 Mon Sep 17 00:00:00 2001 From: Andrey Filipenkov Date: Sun, 7 Mar 2021 18:20:53 +0300 Subject: [PATCH] disable console colors as Xcode doesn't render them --- lib/CConsoleHandler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/CConsoleHandler.cpp b/lib/CConsoleHandler.cpp index b5489b984..ebff37841 100644 --- a/lib/CConsoleHandler.cpp +++ b/lib/CConsoleHandler.cpp @@ -165,6 +165,7 @@ LONG WINAPI onUnhandledException(EXCEPTION_POINTERS* exception) void CConsoleHandler::setColor(EConsoleTextColor::EConsoleTextColor color) { +#ifndef VCMI_IOS TColor colorCode; switch(color) { @@ -204,6 +205,7 @@ void CConsoleHandler::setColor(EConsoleTextColor::EConsoleTextColor color) #else std::cout << colorCode; #endif +#endif } int CConsoleHandler::run()