Update log.cpp

This commit is contained in:
tobid7 2022-04-22 15:07:21 +02:00 committed by GitHub
parent 809b0cfad6
commit c3f737de14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ Log::Log()
void Log::Init(const char *filename)
{
std::string name = "logs/Log_" + Log::logDate() + filename + ".txt";
std::string name = "sdmc:/" + Log::logDate() + filename + ".txt";
this->filename = name.c_str();
if ((access(name.c_str(), F_OK) == 0))
{