LOGGER: fixed log file not flushed

This commit is contained in:
XargonWan 2024-12-01 22:47:12 +09:00
parent 44fb412e3d
commit f47bb09fa8

View file

@ -139,6 +139,10 @@ Log::~Log()
sFile << mOutStringStream.str(); sFile << mOutStringStream.str();
#if defined(RETRODECK)
sFile.flush();
#endif
#if defined(__ANDROID__) #if defined(__ANDROID__)
if (mMessageLevel == LogError) { if (mMessageLevel == LogError) {
__android_log_print(ANDROID_LOG_ERROR, ANDROID_APPLICATION_ID, "%s", __android_log_print(ANDROID_LOG_ERROR, ANDROID_APPLICATION_ID, "%s",