yuzu: Avoid reading broken games

This commit is contained in:
german77 2023-07-24 08:05:47 -06:00
parent 3e4029b238
commit a0ed0e4e10
1 changed files with 5 additions and 1 deletions

View File

@ -265,7 +265,11 @@ void GameListWorker::AddTitlesToGameList(GameListDir* parent_dir) {
std::vector<u8> icon; std::vector<u8> icon;
std::string name; std::string name;
u64 program_id = 0; 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(), const PatchManager patch{program_id, system.GetFileSystemController(),
system.GetContentProvider()}; system.GetContentProvider()};