summaryrefslogtreecommitdiff
path: root/src/logger.cpp
diff options
context:
space:
mode:
authorcpasjuste <cpasjuste@gmail.com>2020-04-22 15:24:08 +0200
committercpasjuste <cpasjuste@gmail.com>2020-04-22 15:24:08 +0200
commitf43e3aa48aeb561f5c7e85f1b7121aab6a61decd (patch)
tree1c23a1e1db2676c27a99b6385f0580442b29f7a0 /src/logger.cpp
parentb0c696eaab501391512b08826c3c9a52023e2be7 (diff)
downloadManaVerse-f43e3aa48aeb561f5c7e85f1b7121aab6a61decd.tar.gz
ManaVerse-f43e3aa48aeb561f5c7e85f1b7121aab6a61decd.tar.bz2
ManaVerse-f43e3aa48aeb561f5c7e85f1b7121aab6a61decd.tar.xz
ManaVerse-f43e3aa48aeb561f5c7e85f1b7121aab6a61decd.zip
switch: first commit
Diffstat (limited to 'src/logger.cpp')
-rw-r--r--src/logger.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/logger.cpp b/src/logger.cpp
index b7d3b422e..90aefaeeb 100644
--- a/src/logger.cpp
+++ b/src/logger.cpp
@@ -120,7 +120,11 @@ void Logger::setLogFile(const std::string &logFilename)
{
closeFile();
+#ifdef __SWITCH__
+ mLogFile = nullptr;
+#else
mLogFile = fopen(logFilename.c_str(), "wt");
+#endif
if (mLogFile == nullptr)
{