(Windows) Forward slashes are now converted to backslashes for the console log output.

This commit is contained in:
Leon Styhre 2021-01-28 20:24:56 +01:00
parent 0974e7b593
commit cc22a1fa16

View file

@ -105,5 +105,9 @@ Log::~Log()
// If it's an error, also print to console. // If it's an error, also print to console.
// Print all messages if using --debug. // Print all messages if using --debug.
if (messageLevel == LogError || reportingLevel >= LogDebug) if (messageLevel == LogError || reportingLevel >= LogDebug)
#if defined(_WIN64)
std::cerr << formattedString;
#else
std::cerr << os.str(); std::cerr << os.str();
#endif
} }