summaryrefslogtreecommitdiff
path: root/src/logger.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/logger.h')
-rw-r--r--src/logger.h7
1 files changed, 5 insertions, 2 deletions
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 <SDL_mutex.h>
PRAGMA48(GCC diagnostic pop)
-#include <fstream>
+#include <stdio.h>
+#include <string>
#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<std::string> mDelayedLog;
SDL_mutex *mMutex;
volatile bool mThreadLocked;