Update renderd7.cpp
This commit is contained in:
parent
81fa120cb7
commit
4fe4232796
@ -526,13 +526,14 @@ Result RenderD7::Init::Main(std::string app_name)
|
|||||||
romfsInit();
|
romfsInit();
|
||||||
cfguInit();
|
cfguInit();
|
||||||
D_app_name = app_name
|
D_app_name = app_name
|
||||||
std::string cfgpath = "sdmc:/RenderD7/";
|
std::string cfgpath = "sdmc:/RenderD7/Apps/";
|
||||||
cfgpath += D_app_name;
|
cfgpath += D_app_name;
|
||||||
mkdir("sdmc:/RenderD7/", 0777);
|
mkdir("sdmc:/RenderD7/", 0777);
|
||||||
|
mkdir("sdmc:/RenderD7/Apps", 0777);
|
||||||
mkdir(cfgpath.c_str(), 0777);
|
mkdir(cfgpath.c_str(), 0777);
|
||||||
if (!FS::FileExist(cfgpath + "/config.ini"))
|
if (!FS::FileExist(cfgpath + "config.ini"))
|
||||||
{
|
{
|
||||||
cfgfile = std::make_unique<INI::INIFile>(cfgpath+ "/config.ini");
|
cfgfile = std::make_unique<INI::INIFile>(cfgpath+ "config.ini");
|
||||||
cfgfile->read(cfgstruct);
|
cfgfile->read(cfgstruct);
|
||||||
cfgstruct["info"]["version"] = CFGVER;
|
cfgstruct["info"]["version"] = CFGVER;
|
||||||
cfgstruct["info"]["renderd7ver"] = RENDERD7VSTRING;
|
cfgstruct["info"]["renderd7ver"] = RENDERD7VSTRING;
|
||||||
@ -546,7 +547,7 @@ Result RenderD7::Init::Main(std::string app_name)
|
|||||||
cfgstruct["metrik-settings"]["ColorA"] = "255";
|
cfgstruct["metrik-settings"]["ColorA"] = "255";
|
||||||
cfgfile->write(cfgstruct);
|
cfgfile->write(cfgstruct);
|
||||||
}
|
}
|
||||||
cfgfile = std::make_unique<INI::INIFile>(cfgpath+ "/config.ini");
|
cfgfile = std::make_unique<INI::INIFile>(cfgpath+ "config.ini");
|
||||||
cfgfile->read(cfgstruct);
|
cfgfile->read(cfgstruct);
|
||||||
std::string Fps = cfgstruct["settings"]["forceFrameRate"];
|
std::string Fps = cfgstruct["settings"]["forceFrameRate"];
|
||||||
C3D_FrameRate(RenderD7::Convert::StringtoFloat(Fps));
|
C3D_FrameRate(RenderD7::Convert::StringtoFloat(Fps));
|
||||||
|
Loading…
Reference in New Issue
Block a user