Merge pull request #12384 from AdmiralCurtiss/font-load-offset
HW/CEXIIPL: Fix loading files at nonzero offset in LoadFileToIPL().
This commit is contained in:
commit
6e0bc2a4db
|
@ -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