diff options
| author | JosJuice <josjuice@gmail.com> | 2017-05-12 18:49:00 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2017-05-12 18:49:00 +0200 |
| commit | 20f7a7a3e302e1ade20f2832710ea0bcabde0bee (patch) | |
| tree | 6fbee5f33f0d3d53a33816e13f080580896ae308 /Source/Core | |
| parent | 22c499aafef8d268dd4bb591c177af411809a979 (diff) | |
Boot: Read apploader trailer for Wii discs too
This was probably an oversight from back when the code
was duplicated between EmulatedBS2_GC and EmulatedBS2_Wii.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/Boot/Boot_BS2Emu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Core/Boot/Boot_BS2Emu.cpp b/Source/Core/Core/Boot/Boot_BS2Emu.cpp index 1e4c35fd1e..9511f75de5 100644 --- a/Source/Core/Core/Boot/Boot_BS2Emu.cpp +++ b/Source/Core/Core/Boot/Boot_BS2Emu.cpp @@ -89,7 +89,7 @@ bool CBoot::RunApploader(bool is_wii) u32 apploader_trailer = 0; if (!volume.ReadSwapped(apploader_offset + 0x10, &apploader_entry, is_wii) || !volume.ReadSwapped(apploader_offset + 0x14, &apploader_size, is_wii) || - (!is_wii && !volume.ReadSwapped(apploader_offset + 0x18, &apploader_trailer, is_wii)) || + !volume.ReadSwapped(apploader_offset + 0x18, &apploader_trailer, is_wii) || apploader_entry == (u32)-1 || apploader_size + apploader_trailer == (u32)-1) { INFO_LOG(BOOT, "Invalid apploader. Your disc image is probably corrupted."); |
