summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Morph2020-07-29 09:21:51 -0400
committerGravatar Morph2020-07-29 09:22:29 -0400
commite0d02d032bfb937113ebc17a84fac82e5e1cfa86 (patch)
tree3bae811f9e5907fce7041d8b89fdea66bade80ad
parentMerge pull request #4442 from lioncash/devicemem (diff)
downloadyuzu-e0d02d032bfb937113ebc17a84fac82e5e1cfa86.tar.gz
yuzu-e0d02d032bfb937113ebc17a84fac82e5e1cfa86.tar.xz
yuzu-e0d02d032bfb937113ebc17a84fac82e5e1cfa86.zip
game_list_worker: Fix game list subdirectory scanning
Oddly enough the scan that feeds the manual content provider is hardcoded to scan 2 nested directories deep. This effectively rendered the scan subdirectories setting useless as the manual content provider cannot find any games located more than 2 nested directories deep. Furthermore, this behavior causes game files to be picked up by the manual content provider even if scan subdirectories is disabled. FIx this by utilizing the behavior described when populating the game list for populating the content provider.
-rw-r--r--src/yuzu/game_list_worker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yuzu/game_list_worker.cpp b/src/yuzu/game_list_worker.cpp
index 2018150db..239016b94 100644
--- a/src/yuzu/game_list_worker.cpp
+++ b/src/yuzu/game_list_worker.cpp
@@ -369,8 +369,8 @@ void GameListWorker::run() {
369 auto* const game_list_dir = new GameListDir(game_dir); 369 auto* const game_list_dir = new GameListDir(game_dir);
370 emit DirEntryReady(game_list_dir); 370 emit DirEntryReady(game_list_dir);
371 provider->ClearAllEntries(); 371 provider->ClearAllEntries();
372 ScanFileSystem(ScanTarget::FillManualContentProvider, game_dir.path.toStdString(), 2, 372 ScanFileSystem(ScanTarget::FillManualContentProvider, game_dir.path.toStdString(),
373 game_list_dir); 373 game_dir.deep_scan ? 256 : 0, game_list_dir);
374 ScanFileSystem(ScanTarget::PopulateGameList, game_dir.path.toStdString(), 374 ScanFileSystem(ScanTarget::PopulateGameList, game_dir.path.toStdString(),
375 game_dir.deep_scan ? 256 : 0, game_list_dir); 375 game_dir.deep_scan ? 256 : 0, game_list_dir);
376 } 376 }