Browse Source

[qt] fix refresh loop when storage is missing

added a check to see if a folder actually exists before adding it to the watcher. fixes a nasty infinite refresh loop when a network drive or usb stick is disconnected but still in the config. applied universally as suggested by crueter.
pull/3434/head
rayman30 1 week ago
parent
commit
20802d8133
  1. 7
      src/yuzu/game_list_worker.cpp

7
src/yuzu/game_list_worker.cpp

@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
@ -497,7 +497,10 @@ void GameListWorker::run() {
DirEntryReady(game_list_dir);
AddTitlesToGameList(game_list_dir);
} else {
watch_list.append(QString::fromStdString(game_dir.path));
const QString qpath = QString::fromStdString(game_dir.path);
if (QDir(qpath).exists()) {
watch_list.append(qpath);
}
auto* const game_list_dir = new GameListDir(game_dir);
DirEntryReady(game_list_dir);
ScanFileSystem(ScanTarget::FillManualContentProvider, game_dir.path, game_dir.deep_scan,

Loading…
Cancel
Save