diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-07-26 16:33:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-26 16:33:14 +0200 |
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 yuzu-6ffcc3d5d2aac8e095aed138d4113a384a35f50e.tar.gz yuzu-6ffcc3d5d2aac8e095aed138d4113a384a35f50e.tar.bz2 yuzu-6ffcc3d5d2aac8e095aed138d4113a384a35f50e.tar.lz yuzu-6ffcc3d5d2aac8e095aed138d4113a384a35f50e.tar.xz yuzu-6ffcc3d5d2aac8e095aed138d4113a384a35f50e.tar.zst yuzu-6ffcc3d5d2aac8e095aed138d4113a384a35f50e.zip |
-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) { 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()}; |