diff options
| -rw-r--r-- | src/yuzu/configuration/configure_per_general.cpp | 10 | ||||
| -rw-r--r-- | src/yuzu/main.cpp | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/yuzu/configuration/configure_per_general.cpp b/src/yuzu/configuration/configure_per_general.cpp index 2bdfc8e5a..c3e68fdf5 100644 --- a/src/yuzu/configuration/configure_per_general.cpp +++ b/src/yuzu/configuration/configure_per_general.cpp | |||
| @@ -13,6 +13,8 @@ | |||
| 13 | #include <QTimer> | 13 | #include <QTimer> |
| 14 | #include <QTreeView> | 14 | #include <QTreeView> |
| 15 | 15 | ||
| 16 | #include "common/common_paths.h" | ||
| 17 | #include "common/file_util.h" | ||
| 16 | #include "core/file_sys/control_metadata.h" | 18 | #include "core/file_sys/control_metadata.h" |
| 17 | #include "core/file_sys/patch_manager.h" | 19 | #include "core/file_sys/patch_manager.h" |
| 18 | #include "core/file_sys/xts_archive.h" | 20 | #include "core/file_sys/xts_archive.h" |
| @@ -79,6 +81,14 @@ void ConfigurePerGameGeneral::applyConfiguration() { | |||
| 79 | disabled_addons.push_back(item.front()->text().toStdString()); | 81 | disabled_addons.push_back(item.front()->text().toStdString()); |
| 80 | } | 82 | } |
| 81 | 83 | ||
| 84 | auto current = Settings::values.disabled_addons[title_id]; | ||
| 85 | std::sort(disabled_addons.begin(), disabled_addons.end()); | ||
| 86 | std::sort(current.begin(), current.end()); | ||
| 87 | if (disabled_addons != current) { | ||
| 88 | FileUtil::Delete(FileUtil::GetUserPath(FileUtil::UserPath::CacheDir) + DIR_SEP + | ||
| 89 | "game_list" + DIR_SEP + fmt::format("{:016X}.pv.txt", title_id)); | ||
| 90 | } | ||
| 91 | |||
| 82 | Settings::values.disabled_addons[title_id] = disabled_addons; | 92 | Settings::values.disabled_addons[title_id] = disabled_addons; |
| 83 | } | 93 | } |
| 84 | 94 | ||
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index cef2cc1ae..86aed0d94 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -1396,6 +1396,9 @@ void GMainWindow::OnMenuInstallToNAND() { | |||
| 1396 | tr("The file was successfully installed.")); | 1396 | tr("The file was successfully installed.")); |
| 1397 | game_list->PopulateAsync(UISettings::values.game_directory_path, | 1397 | game_list->PopulateAsync(UISettings::values.game_directory_path, |
| 1398 | UISettings::values.game_directory_deepscan); | 1398 | UISettings::values.game_directory_deepscan); |
| 1399 | // Clear the game list cache. | ||
| 1400 | FileUtil::DeleteDirRecursively(FileUtil::GetUserPath(FileUtil::UserPath::CacheDir) + | ||
| 1401 | DIR_SEP + "game_list"); | ||
| 1399 | }; | 1402 | }; |
| 1400 | 1403 | ||
| 1401 | const auto failed = [this]() { | 1404 | const auto failed = [this]() { |