mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
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;
|
return false;
|
||||||
|
|
||||||
const u64 filesize = stream.GetSize();
|
const u64 filesize = stream.GetSize();
|
||||||
if (offset >= filesize)
|
if (!stream.ReadBytes(&m_rom[offset], std::min<u64>(filesize, ROM_SIZE - offset)))
|
||||||
return false;
|
|
||||||
|
|
||||||
if (!stream.ReadBytes(&m_rom[offset], std::min<u64>(filesize, ROM_SIZE) - offset))
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
m_fonts_loaded = true;
|
m_fonts_loaded = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user