diff options
| author | 2023-12-19 11:27:08 -0600 | |
|---|---|---|
| committer | 2023-12-19 11:34:53 -0600 | |
| commit | 816c7a8d1fa3804aee25991182bce63f6dd2ddac (patch) | |
| tree | 8aaf1c09811ed29a92acc76de93ce4600d484d14 /src | |
| parent | yuzu: Make language persistent and remove symbols_path (diff) | |
| download | yuzu-816c7a8d1fa3804aee25991182bce63f6dd2ddac.tar.gz yuzu-816c7a8d1fa3804aee25991182bce63f6dd2ddac.tar.xz yuzu-816c7a8d1fa3804aee25991182bce63f6dd2ddac.zip | |
yuzu: Read/Save category Paths
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/configuration/qt_config.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/yuzu/configuration/qt_config.cpp b/src/yuzu/configuration/qt_config.cpp index 417a43ec5..a71000b72 100644 --- a/src/yuzu/configuration/qt_config.cpp +++ b/src/yuzu/configuration/qt_config.cpp | |||
| @@ -225,6 +225,8 @@ void QtConfig::ReadPathValues() { | |||
| 225 | QString::fromStdString(ReadStringSetting(std::string("recentFiles"))) | 225 | QString::fromStdString(ReadStringSetting(std::string("recentFiles"))) |
| 226 | .split(QStringLiteral(", "), Qt::SkipEmptyParts, Qt::CaseSensitive); | 226 | .split(QStringLiteral(", "), Qt::SkipEmptyParts, Qt::CaseSensitive); |
| 227 | 227 | ||
| 228 | ReadCategory(Settings::Category::Paths); | ||
| 229 | |||
| 228 | EndGroup(); | 230 | EndGroup(); |
| 229 | } | 231 | } |
| 230 | 232 | ||
| @@ -405,6 +407,8 @@ void QtConfig::SaveQtControlValues() { | |||
| 405 | void QtConfig::SavePathValues() { | 407 | void QtConfig::SavePathValues() { |
| 406 | BeginGroup(Settings::TranslateCategory(Settings::Category::Paths)); | 408 | BeginGroup(Settings::TranslateCategory(Settings::Category::Paths)); |
| 407 | 409 | ||
| 410 | WriteCategory(Settings::Category::Paths); | ||
| 411 | |||
| 408 | WriteSetting(std::string("romsPath"), UISettings::values.roms_path); | 412 | WriteSetting(std::string("romsPath"), UISettings::values.roms_path); |
| 409 | BeginArray(std::string("gamedirs")); | 413 | BeginArray(std::string("gamedirs")); |
| 410 | for (int i = 0; i < UISettings::values.game_dirs.size(); ++i) { | 414 | for (int i = 0; i < UISettings::values.game_dirs.size(); ++i) { |