mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-09-07 05:19:20 +02:00
Merge pull request #4448 from Morph1984/fix-entries
game_list_worker: Do not clear entries when > 1 gamedir is present
This commit is contained in:
commit
f14bb61acd
@ -350,6 +350,7 @@ void GameListWorker::ScanFileSystem(ScanTarget target, const std::string& dir_pa
|
|||||||
|
|
||||||
void GameListWorker::run() {
|
void GameListWorker::run() {
|
||||||
stop_processing = false;
|
stop_processing = false;
|
||||||
|
provider->ClearAllEntries();
|
||||||
|
|
||||||
for (UISettings::GameDir& game_dir : game_dirs) {
|
for (UISettings::GameDir& game_dir : game_dirs) {
|
||||||
if (game_dir.path == QStringLiteral("SDMC")) {
|
if (game_dir.path == QStringLiteral("SDMC")) {
|
||||||
@ -368,7 +369,6 @@ void GameListWorker::run() {
|
|||||||
watch_list.append(game_dir.path);
|
watch_list.append(game_dir.path);
|
||||||
auto* const game_list_dir = new GameListDir(game_dir);
|
auto* const game_list_dir = new GameListDir(game_dir);
|
||||||
emit DirEntryReady(game_list_dir);
|
emit DirEntryReady(game_list_dir);
|
||||||
provider->ClearAllEntries();
|
|
||||||
ScanFileSystem(ScanTarget::FillManualContentProvider, game_dir.path.toStdString(),
|
ScanFileSystem(ScanTarget::FillManualContentProvider, game_dir.path.toStdString(),
|
||||||
game_dir.deep_scan ? 256 : 0, game_list_dir);
|
game_dir.deep_scan ? 256 : 0, game_list_dir);
|
||||||
ScanFileSystem(ScanTarget::PopulateGameList, game_dir.path.toStdString(),
|
ScanFileSystem(ScanTarget::PopulateGameList, game_dir.path.toStdString(),
|
||||||
|
Loading…
Reference in New Issue
Block a user