From 4fe42327964b8678868a58e9fb2591dd1a1f7905 Mon Sep 17 00:00:00 2001 From: Tobi Date: Sat, 27 Nov 2021 12:05:03 +0100 Subject: [PATCH] Update renderd7.cpp --- renderd7.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/renderd7.cpp b/renderd7.cpp index b88c66d..c48ca61 100644 --- a/renderd7.cpp +++ b/renderd7.cpp @@ -526,13 +526,14 @@ Result RenderD7::Init::Main(std::string app_name) romfsInit(); cfguInit(); D_app_name = app_name - std::string cfgpath = "sdmc:/RenderD7/"; + std::string cfgpath = "sdmc:/RenderD7/Apps/"; cfgpath += D_app_name; mkdir("sdmc:/RenderD7/", 0777); + mkdir("sdmc:/RenderD7/Apps", 0777); mkdir(cfgpath.c_str(), 0777); - if (!FS::FileExist(cfgpath + "/config.ini")) + if (!FS::FileExist(cfgpath + "config.ini")) { - cfgfile = std::make_unique(cfgpath+ "/config.ini"); + cfgfile = std::make_unique(cfgpath+ "config.ini"); cfgfile->read(cfgstruct); cfgstruct["info"]["version"] = CFGVER; cfgstruct["info"]["renderd7ver"] = RENDERD7VSTRING; @@ -546,7 +547,7 @@ Result RenderD7::Init::Main(std::string app_name) cfgstruct["metrik-settings"]["ColorA"] = "255"; cfgfile->write(cfgstruct); } - cfgfile = std::make_unique(cfgpath+ "/config.ini"); + cfgfile = std::make_unique(cfgpath+ "config.ini"); cfgfile->read(cfgstruct); std::string Fps = cfgstruct["settings"]["forceFrameRate"]; C3D_FrameRate(RenderD7::Convert::StringtoFloat(Fps));