1
0
Fork 1
forked from suyu/suyu

Merge pull request #11142 from german77/avoid_crash

yuzu: Avoid reading broken games
This commit is contained in:
liamwhite 2023-07-26 10:33:14 -04:00 committed by GitHub
commit 6ffcc3d5d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()};