diff options
| author | 2023-07-24 08:05:47 -0600 | |
|---|---|---|
| committer | 2023-07-24 08:59:14 -0600 | |
| commit | a0ed0e4e1045ec376d1c8b9c630be937081f66bd (patch) | |
| tree | bb9a097165132d9f86c1a5da17579bedace707f4 | |
| parent | Merge pull request #11042 from lat9nq/wayland-appimage (diff) | |
| download | yuzu-a0ed0e4e1045ec376d1c8b9c630be937081f66bd.tar.gz yuzu-a0ed0e4e1045ec376d1c8b9c630be937081f66bd.tar.xz yuzu-a0ed0e4e1045ec376d1c8b9c630be937081f66bd.zip | |
yuzu: Avoid reading broken games
| -rw-r--r-- | src/yuzu/game_list_worker.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/yuzu/game_list_worker.cpp b/src/yuzu/game_list_worker.cpp index 5c910c9e0..9404365b4 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) { | |||
| 265 | std::vector<u8> icon; | 265 | std::vector<u8> icon; |
| 266 | std::string name; | 266 | std::string name; |
| 267 | u64 program_id = 0; | 267 | u64 program_id = 0; |
| 268 | loader->ReadProgramId(program_id); | 268 | const auto result = loader->ReadProgramId(program_id); |
| 269 | |||
| 270 | if (result != Loader::ResultStatus::Success) { | ||
| 271 | continue; | ||
| 272 | } | ||
| 269 | 273 | ||
| 270 | const PatchManager patch{program_id, system.GetFileSystemController(), | 274 | const PatchManager patch{program_id, system.GetFileSystemController(), |
| 271 | system.GetContentProvider()}; | 275 | system.GetContentProvider()}; |