Prevent our colour codes from making it to stdout

This commit is contained in:
Tamás Bálint Misius
2025-01-26 10:25:32 +01:00
parent 3ee6741fcb
commit 3d2d8f4936

View File

@@ -1164,7 +1164,7 @@ void GameModel::Log(String message, bool printToFile)
consoleLog.pop_back();
notifyLogChanged(message);
if (printToFile)
std::cout << message.ToUtf8() << std::endl;
std::cout << format::CleanString(message, false, true, false).ToUtf8() << std::endl;
}
std::deque<String> GameModel::GetLog()