HW/CEXIIPL: Fix loading files at nonzero offset in LoadFileToIPL().
This commit is contained in:
parent
c2b642d0b7
commit
694b3b4ea1
|
@ -168,10 +168,7 @@ bool CEXIIPL::LoadFileToIPL(const std::string& filename, u32 offset)
|
|||
return false;
|
||||
|
||||
const u64 filesize = stream.GetSize();
|
||||
if (offset >= filesize)
|
||||
return false;
|
||||
|
||||
if (!stream.ReadBytes(&m_rom[offset], std::min<u64>(filesize, ROM_SIZE) - offset))
|
||||
if (!stream.ReadBytes(&m_rom[offset], std::min<u64>(filesize, ROM_SIZE - offset)))
|
||||
return false;
|
||||
|
||||
m_fonts_loaded = true;
|
||||
|
|
Loading…
Reference in New Issue