diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-02-16 02:29:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-02-16 02:29:41 +0300 |
commit | 1e68125a911d426df22281690f09396158ba5ded (patch) | |
tree | 2e46a2966de58db1654036637ceba5caf7b6958a /src/logger.h | |
parent | 435c12617241fb87225987f2e3f0521cf2dbae75 (diff) | |
download | manaplus-1e68125a911d426df22281690f09396158ba5ded.tar.gz manaplus-1e68125a911d426df22281690f09396158ba5ded.tar.bz2 manaplus-1e68125a911d426df22281690f09396158ba5ded.tar.xz manaplus-1e68125a911d426df22281690f09396158ba5ded.zip |
Replace file type from stream to FILE in logger.
This will allow log data from C libs.
Diffstat (limited to 'src/logger.h')
-rw-r--r-- | src/logger.h | 7 |
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; |