small bugfix

This commit is contained in:
tobid7 2024-05-01 19:33:53 +02:00
parent 04c56a98d5
commit 76a8b5ee5a

View File

@ -2,10 +2,9 @@
#include <fstream> #include <fstream>
#include <map> #include <map>
#include <renderd7/ResultDecoder.hpp> #include <renderd7/ResultDecoder.hpp>
#include <renderd7/internal_db.hpp>
#include <sstream> #include <sstream>
extern std::string D_app_name;
static std::map<int, std::string> modules = { static std::map<int, std::string> modules = {
{0, "common"}, {0, "common"},
{1, "kernel"}, {1, "kernel"},
@ -439,7 +438,7 @@ std::string ResultDecoder::GetSummary() {
} }
void RenderD7::ResultDecoder::WriteLog() { void RenderD7::ResultDecoder::WriteLog() {
std::string out_path = "sdmc:/RenderD7/Apps/" + D_app_name + "/resdec/"; std::string out_path = "sdmc:/RenderD7/Apps/" + rd7i_app_name + "/resdec/";
std::filesystem::create_directories(out_path); std::filesystem::create_directories(out_path);
out_path += "/err_result_" + std::to_string(time(0)) + ".log"; out_path += "/err_result_" + std::to_string(time(0)) + ".log";
std::ofstream out(out_path, std::ios::app); std::ofstream out(out_path, std::ios::app);