VERY experimental Nintendo Switch 2 emulator
C++
AddFstEntriesToGameList - prevent loading a directory
LFsWangafcac8ad3049
diff --git a/src/citra_qt/game_list.cpp b/src/citra_qt/game_list.cppindex 49cb98e702..15484fae38 100644--- a/src/citra_qt/game_list.cpp+++ b/src/citra_qt/game_list.cpp@@ -130,9 +130,7 @@ void GameListWorker::AddFstEntriesToGameList(const std::string& dir_path, unsignif (stop_processing)return false; // Breaks the callback loop.- if (recursion > 0 && FileUtil::IsDirectory(physical_name)) {- AddFstEntriesToGameList(physical_name, recursion - 1);- } else {+ if (!FileUtil::IsDirectory(physical_name)) {std::unique_ptr<Loader::AppLoader> loader = Loader::GetLoader(physical_name);if (!loader)return true;@@ -145,6 +143,8 @@ void GameListWorker::AddFstEntriesToGameList(const std::string& dir_path, unsignnew GameListItem(QString::fromStdString(Loader::GetFileTypeString(loader->GetFileType()))),new GameListItemSize(FileUtil::GetSize(physical_name)),});+ } else if (recursion > 0) {+ AddFstEntriesToGameList(physical_name, recursion - 1);}return true;