diff options
| author | 2023-07-26 10:33:14 -0400 | |
|---|---|---|
| committer | 2023-07-26 10:33:14 -0400 | |
| commit | 6ffcc3d5d2aac8e095aed138d4113a384a35f50e (patch) | |
| tree | 7a39330e0c168f56fed9c23f423acfadf3cc0000 | |
| parent | Merge pull request #11157 from lat9nq/nasm (diff) | |
| parent | yuzu: Avoid reading broken games (diff) | |
| download | yuzu-6ffcc3d5d2aac8e095aed138d4113a384a35f50e.tar.gz yuzu-6ffcc3d5d2aac8e095aed138d4113a384a35f50e.tar.xz yuzu-6ffcc3d5d2aac8e095aed138d4113a384a35f50e.zip | |
Merge pull request #11142 from german77/avoid_crash
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()}; |