Browse Source
Merge pull request #11142 from german77/avoid_crash
yuzu: Avoid reading broken games
pull/15/merge
liamwhite
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
1 deletions
-
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()}; |
|
|
|
|