From 1e68125a911d426df22281690f09396158ba5ded Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 16 Feb 2018 02:29:41 +0300 Subject: Replace file type from stream to FILE in logger. This will allow log data from C libs. --- src/logger.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/logger.h') diff --git a/src/logger.h b/src/logger.h index 91602bcd8..580043108 100644 --- a/src/logger.h +++ b/src/logger.h @@ -32,7 +32,8 @@ PRAGMA48(GCC diagnostic ignored "-Wshadow") #include PRAGMA48(GCC diagnostic pop) -#include +#include +#include #ifdef ENABLEDEBUGLOG #define DEBUGLOG(str) \ @@ -175,6 +176,8 @@ class Logger final const char* const comment); #endif // ENABLEDEBUGLOG + void closeFile(); + void setDebugLog(const bool n) { mDebugLog = n; } @@ -211,7 +214,7 @@ class Logger final const uint32_t id3) const; private: - std::ofstream mLogFile; + FILE *mLogFile; STD_VECTOR mDelayedLog; SDL_mutex *mMutex; volatile bool mThreadLocked; -- cgit v1.2.3-70-g09d2