mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-05 07:39:17 +00:00
Merge pull request #5584 from JosJuice/boot-tmd-valid
Boot: Check TMD validity before reading from TMD
This commit is contained in:
commit
d9e8a2a7e7
1 changed files with 3 additions and 0 deletions
|
@ -343,6 +343,9 @@ bool CBoot::EmulatedBS2_Wii(const DiscIO::Volume* volume)
|
||||||
const DiscIO::Partition partition = volume->GetGamePartition();
|
const DiscIO::Partition partition = volume->GetGamePartition();
|
||||||
const IOS::ES::TMDReader tmd = volume->GetTMD(partition);
|
const IOS::ES::TMDReader tmd = volume->GetTMD(partition);
|
||||||
|
|
||||||
|
if (!tmd.IsValid())
|
||||||
|
return false;
|
||||||
|
|
||||||
if (!SetupWiiMemory(volume, tmd.GetIOSId()))
|
if (!SetupWiiMemory(volume, tmd.GetIOSId()))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue