mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-19 19:15:26 +00:00
Fix OVL file preview loading
This commit is contained in:
parent
62b880cb78
commit
4b4ffba080
1 changed files with 12 additions and 6 deletions
|
@ -2071,14 +2071,20 @@ game_boot_result Emulator::Load(const std::string& title_id, bool is_disc_patch,
|
|||
}
|
||||
}
|
||||
// Overlay (OVL) executable (only load it)
|
||||
else if (vm::map(0x3000'0000, 0x1000'0000, 0x200); !ppu_load_overlay(ppu_exec, false, m_path).first)
|
||||
{
|
||||
ppu_exec.set_error(elf_error::header_type);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Preserve emulation state for OVL executable
|
||||
Pause(true);
|
||||
GetCallbacks().on_ready();
|
||||
g_fxo->init(false);
|
||||
|
||||
if (!vm::map(0x3000'0000, 0x1000'0000, 0x200) || !ppu_load_overlay(ppu_exec, false, m_path).first)
|
||||
{
|
||||
ppu_exec.set_error(elf_error::header_type);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Preserve emulation state for OVL executable
|
||||
Pause(true);
|
||||
}
|
||||
}
|
||||
|
||||
if (ppu_exec != elf_error::ok)
|
||||
|
|
Loading…
Add table
Reference in a new issue