diff --git a/source/Sysmodule/source/log.cpp b/source/Sysmodule/source/log.cpp index c44e17e..a16690c 100644 --- a/source/Sysmodule/source/log.cpp +++ b/source/Sysmodule/source/log.cpp @@ -1,6 +1,6 @@ #include "switch.h" #include "log.h" -#include "config_handler.h" +#include #include static ams::os::Mutex printMutex(false); @@ -35,6 +35,8 @@ void WriteToLog(const char *fmt, ...) ams::TimeSpan ts = ams::os::ConvertToTimeSpan(ams::os::GetSystemTick()); + mkdir(CONFIG_PATH, 777); + FILE *fp = fopen(LOG_PATH, "a"); //Print time diff --git a/source/Sysmodule/source/log.h b/source/Sysmodule/source/log.h index df09311..f52eece 100644 --- a/source/Sysmodule/source/log.h +++ b/source/Sysmodule/source/log.h @@ -1,4 +1,5 @@ #pragma once +#include "config_handler.h" #define LOG_PATH CONFIG_PATH "log.txt"