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:
parent
22c499aafe
commit
20f7a7a3e3
|
@ -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.");
|
||||
|
|
Loading…
Reference in New Issue