mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-03 18:24:18 +01:00
Merge pull request #11142 from german77/avoid_crash
yuzu: Avoid reading broken games
This commit is contained in:
commit
6ffcc3d5d2
@ -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()};
|
||||||
|
Loading…
Reference in New Issue
Block a user