mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-15 08:10:05 +00:00
yuzu: Read/Save category Paths
This commit is contained in:
parent
53956a2990
commit
816c7a8d1f
@ -225,6 +225,8 @@ void QtConfig::ReadPathValues() {
|
|||||||
QString::fromStdString(ReadStringSetting(std::string("recentFiles")))
|
QString::fromStdString(ReadStringSetting(std::string("recentFiles")))
|
||||||
.split(QStringLiteral(", "), Qt::SkipEmptyParts, Qt::CaseSensitive);
|
.split(QStringLiteral(", "), Qt::SkipEmptyParts, Qt::CaseSensitive);
|
||||||
|
|
||||||
|
ReadCategory(Settings::Category::Paths);
|
||||||
|
|
||||||
EndGroup();
|
EndGroup();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -405,6 +407,8 @@ void QtConfig::SaveQtControlValues() {
|
|||||||
void QtConfig::SavePathValues() {
|
void QtConfig::SavePathValues() {
|
||||||
BeginGroup(Settings::TranslateCategory(Settings::Category::Paths));
|
BeginGroup(Settings::TranslateCategory(Settings::Category::Paths));
|
||||||
|
|
||||||
|
WriteCategory(Settings::Category::Paths);
|
||||||
|
|
||||||
WriteSetting(std::string("romsPath"), UISettings::values.roms_path);
|
WriteSetting(std::string("romsPath"), UISettings::values.roms_path);
|
||||||
BeginArray(std::string("gamedirs"));
|
BeginArray(std::string("gamedirs"));
|
||||||
for (int i = 0; i < UISettings::values.game_dirs.size(); ++i) {
|
for (int i = 0; i < UISettings::values.game_dirs.size(); ++i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user