From f47bb09fa84f86843ddc56f0374524275b9290ba Mon Sep 17 00:00:00 2001 From: XargonWan Date: Sun, 1 Dec 2024 22:47:12 +0900 Subject: [PATCH] LOGGER: fixed log file not flushed --- es-core/src/Log.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/es-core/src/Log.cpp b/es-core/src/Log.cpp index 9393fef86..c5e67607c 100644 --- a/es-core/src/Log.cpp +++ b/es-core/src/Log.cpp @@ -139,6 +139,10 @@ Log::~Log() sFile << mOutStringStream.str(); + #if defined(RETRODECK) + sFile.flush(); + #endif + #if defined(__ANDROID__) if (mMessageLevel == LogError) { __android_log_print(ANDROID_LOG_ERROR, ANDROID_APPLICATION_ID, "%s",