diff --git a/renderd7.cpp b/renderd7.cpp index b38ed93..46893ad 100644 --- a/renderd7.cpp +++ b/renderd7.cpp @@ -531,9 +531,9 @@ Result RenderD7::Init::Main(std::string 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; @@ -547,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));