VERY experimental Nintendo Switch 2 emulator
C++
yuzu: Avoid reading broken games
german77352baa02da26
diff --git a/src/yuzu/game_list_worker.cpp b/src/yuzu/game_list_worker.cppindex 5c910c9e0f..9404365b4b 100644--- a/src/yuzu/game_list_worker.cpp+++ b/src/yuzu/game_list_worker.cpp@@ -265,7 +265,11 @@ void GameListWorker::AddTitlesToGameList(GameListDir* parent_dir) {std::vector<u8> icon;std::string name;u64 program_id = 0;- loader->ReadProgramId(program_id);+ const auto result = loader->ReadProgramId(program_id);++ if (result != Loader::ResultStatus::Success) {+ continue;+ }const PatchManager patch{program_id, system.GetFileSystemController(),system.GetContentProvider()};