Core: Fix N64 disk IPL load address check (#2401)
The IPL load address check always evaluated to false due to a wrong operator. Signed-off-by: Francois Berder <fberder@outlook.fr>
This commit is contained in:
parent
45fb2ad965
commit
560c49ba2d
|
@ -191,7 +191,7 @@ bool CN64Disk::IsValidDiskImage(uint8_t Test[0x20])
|
|||
|
||||
// IPL load address
|
||||
uint32_t ipl_load_addr = (Test[0x1C] << 24) | (Test[0x1D] << 16) | (Test[0x1E] << 8) | Test[0x1F];
|
||||
if (ipl_load_addr < 0x80000000 && ipl_load_addr >= 0x80800000) return false;
|
||||
if (ipl_load_addr < 0x80000000 || ipl_load_addr >= 0x80800000) return false;
|
||||
|
||||
// Country code
|
||||
if (*((uint32_t *)&Test[0]) == 0x16D348E8)
|
||||
|
|
Loading…
Reference in New Issue