diff options
| author | Leo Lam <leolino.lam@gmail.com> | 2017-06-09 18:07:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-09 18:07:26 +0200 |
| commit | d9e8a2a7e7a40756a9197c07f2d951cbd4cc1cc0 (patch) | |
| tree | 252dd5a03778b0214541fde00786bbd626c6552a /Source | |
| parent | 25850dd36648cd464f4a4a94ff6388ec6503ca8f (diff) | |
| parent | fdd197475bd17696921c9ceba7c664a86ee7ccb9 (diff) | |
Merge pull request #5584 from JosJuice/boot-tmd-valid
Boot: Check TMD validity before reading from TMD
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/Core/Boot/Boot_BS2Emu.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/Core/Boot/Boot_BS2Emu.cpp b/Source/Core/Core/Boot/Boot_BS2Emu.cpp index 0c3848f9a1..22737f4246 100644 --- a/Source/Core/Core/Boot/Boot_BS2Emu.cpp +++ b/Source/Core/Core/Boot/Boot_BS2Emu.cpp @@ -343,6 +343,9 @@ bool CBoot::EmulatedBS2_Wii(const DiscIO::Volume* volume) const DiscIO::Partition partition = volume->GetGamePartition(); const IOS::ES::TMDReader tmd = volume->GetTMD(partition); + if (!tmd.IsValid()) + return false; + if (!SetupWiiMemory(volume, tmd.GetIOSId())) return false; |
