forked from etc/pineapple-src
early-access version 3988
This commit is contained in:
parent
2358e6443d
commit
8c8ebf2eda
2 changed files with 12 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
yuzu emulator early access
|
yuzu emulator early access
|
||||||
=============
|
=============
|
||||||
|
|
||||||
This is the source code for early-access 3987.
|
This is the source code for early-access 3988.
|
||||||
|
|
||||||
## Legal Notice
|
## Legal Notice
|
||||||
|
|
||||||
|
|
|
@ -65,6 +65,11 @@ void Config::WriteToIni() const {
|
||||||
fp = fopen(config_loc.c_str(), "wb");
|
fp = fopen(config_loc.c_str(), "wb");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (fp == nullptr) {
|
||||||
|
LOG_ERROR(Frontend, "Config file could not be saved!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
CSimpleIniA::FileWriter writer(fp);
|
CSimpleIniA::FileWriter writer(fp);
|
||||||
const SI_Error rc = config->Save(writer, false);
|
const SI_Error rc = config->Save(writer, false);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
|
@ -91,6 +96,11 @@ void Config::SetUpIni() {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (fp == nullptr) {
|
||||||
|
LOG_ERROR(Frontend, "Config file could not be loaded!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (SI_Error rc = config->LoadFile(fp); rc < 0) {
|
if (SI_Error rc = config->LoadFile(fp); rc < 0) {
|
||||||
LOG_ERROR(Frontend, "Config file could not be loaded!");
|
LOG_ERROR(Frontend, "Config file could not be loaded!");
|
||||||
}
|
}
|
||||||
|
@ -332,8 +342,7 @@ void Config::ReadScreenshotValues() {
|
||||||
|
|
||||||
ReadCategory(Settings::Category::Screenshots);
|
ReadCategory(Settings::Category::Screenshots);
|
||||||
FS::SetYuzuPath(FS::YuzuPath::ScreenshotsDir,
|
FS::SetYuzuPath(FS::YuzuPath::ScreenshotsDir,
|
||||||
ReadStringSetting(std::string("screenshot_path"),
|
ReadStringSetting(std::string("screenshot_path")));
|
||||||
FS::GetYuzuPathString(FS::YuzuPath::ScreenshotsDir)));
|
|
||||||
|
|
||||||
EndGroup();
|
EndGroup();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue