yuzu: Clear partial/full game list cache when data is updated

This commit is contained in:
Zach Hilman
2019-04-23 09:09:02 -04:00
parent f95bdb5088
commit 944c07ac7d
2 changed files with 13 additions and 0 deletions

View File

@ -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]() {