mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-12-04 03:25:39 +00:00
BIOS: Turn display on with fast boot
Fixes black screen in SaGa Frontier with fast boot disabled.
This commit is contained in:
parent
d468814a6d
commit
6cd991bc57
|
@ -189,8 +189,11 @@ bool PatchBIOSFastBoot(u8* image, u32 image_size, const Hash& hash)
|
||||||
|
|
||||||
// Replace the shell entry point with a return back to the bootstrap.
|
// Replace the shell entry point with a return back to the bootstrap.
|
||||||
Log_InfoPrintf("Patching BIOS to skip intro");
|
Log_InfoPrintf("Patching BIOS to skip intro");
|
||||||
PatchBIOS(image, image_size, 0x1FC18000, 0x03E00008);
|
PatchBIOS(image, image_size, 0x1FC18000, 0x3C011F80); // lui at, 1f80
|
||||||
PatchBIOS(image, image_size, 0x1FC18004, 0x00000000);
|
PatchBIOS(image, image_size, 0x1FC18004, 0x3C0A0300); // lui t2, 0300h
|
||||||
|
PatchBIOS(image, image_size, 0x1FC18008, 0xAC2A1814); // sw zero, 1814h(at) ; turn the display on
|
||||||
|
PatchBIOS(image, image_size, 0x1FC1800C, 0x03E00008); // jr ra
|
||||||
|
PatchBIOS(image, image_size, 0x1FC18010, 0x00000000); // nop
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -483,9 +483,9 @@ restart_instruction:
|
||||||
const Instruction inst = g_state.current_instruction;
|
const Instruction inst = g_state.current_instruction;
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
if (g_state.m_current_instruction_pc == 0x80010000)
|
if (g_state.current_instruction_pc == 0x80030000)
|
||||||
{
|
{
|
||||||
LOG_EXECUTION = true;
|
TRACE_EXECUTION = true;
|
||||||
__debugbreak();
|
__debugbreak();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue