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.
This commit is contained in:
JosJuice 2017-05-12 18:49:00 +02:00
parent 22c499aafe
commit 20f7a7a3e3
1 changed files with 1 additions and 1 deletions

View File

@ -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.");