From 9ff8130e4011bd319f681b61fbf0695c8eceb9e2 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 4 Jan 2021 02:20:21 +1000 Subject: [PATCH] fixup! CPU: Make trace-to-file toggleable at runtime and in release builds --- src/core/cpu_core.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/cpu_core.cpp b/src/core/cpu_core.cpp index a4feec913..09e542ae4 100644 --- a/src/core/cpu_core.cpp +++ b/src/core/cpu_core.cpp @@ -80,7 +80,9 @@ void WriteToExecutionLog(const char* format, ...) if (s_log_file) { std::vfprintf(s_log_file, format, ap); +#ifdef _DEBUG std::fflush(s_log_file); +#endif } va_end(ap);