diff options
| author | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-07-29 07:51:42 -0400 | 
|---|---|---|
| committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-08-04 21:13:35 -0400 | 
| commit | 123024cea286eb37a2604157c0093e64b2271b25 (patch) | |
| tree | 8e8639b93aba02494258fc1c044c0ceff2ec923e /src/yuzu | |
| parent | 142930e60929daedebded1b83066a7e7edcf0af5 (diff) | |
game_list_worker: Do not clear entries when > 1 gamedir is present
Previously the map of entries was being cleared while looping through each game directory, this resulted into all game directories except the last game dir to lose content metadata information. Fix this by clearing the entries only once.
Diffstat (limited to 'src/yuzu')
| -rw-r--r-- | src/yuzu/game_list_worker.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/yuzu/game_list_worker.cpp b/src/yuzu/game_list_worker.cpp index 239016b94..643ca6491 100644 --- a/src/yuzu/game_list_worker.cpp +++ b/src/yuzu/game_list_worker.cpp @@ -350,6 +350,7 @@ void GameListWorker::ScanFileSystem(ScanTarget target, const std::string& dir_pa  void GameListWorker::run() {      stop_processing = false; +    provider->ClearAllEntries();      for (UISettings::GameDir& game_dir : game_dirs) {          if (game_dir.path == QStringLiteral("SDMC")) { @@ -368,7 +369,6 @@ void GameListWorker::run() {              watch_list.append(game_dir.path);              auto* const game_list_dir = new GameListDir(game_dir);              emit DirEntryReady(game_list_dir); -            provider->ClearAllEntries();              ScanFileSystem(ScanTarget::FillManualContentProvider, game_dir.path.toStdString(),                             game_dir.deep_scan ? 256 : 0, game_list_dir);              ScanFileSystem(ScanTarget::PopulateGameList, game_dir.path.toStdString(), | 
