summaryrefslogtreecommitdiff
path: root/src/yuzu/main.cpp
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2019-04-23 09:09:02 -0400
committerZach Hilman <zachhilman@gmail.com>2019-05-26 15:12:12 -0400
commit944c07ac7d90b5b146af346845f457d245b32bf2 (patch)
tree8be92bc20ad04d1176535795dce096fd1b7bd780 /src/yuzu/main.cpp
parentf95bdb5088a4264b7174f22e95d5409b5e297c16 (diff)
yuzu: Clear partial/full game list cache when data is updated
Diffstat (limited to 'src/yuzu/main.cpp')
-rw-r--r--src/yuzu/main.cpp3
1 files changed, 3 insertions, 0 deletions
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() {
tr("The file was successfully installed."));
game_list->PopulateAsync(UISettings::values.game_directory_path,
UISettings::values.game_directory_deepscan);
+ // Clear the game list cache.
+ FileUtil::DeleteDirRecursively(FileUtil::GetUserPath(FileUtil::UserPath::CacheDir) +
+ DIR_SEP + "game_list");
};
const auto failed = [this]() {