mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-06 19:45:33 +00:00
Bus: Enable SIO2 on any unknown BIOS
Not all PS2 BIOSes are in the list.
This commit is contained in:
parent
2ed7aa5536
commit
7932618424
@ -1656,7 +1656,7 @@ template<MemoryAccessSize size>
|
||||
u32 Bus::SIO2ReadHandler(PhysicalMemoryAddress address)
|
||||
{
|
||||
// Stub for using PS2 BIOS.
|
||||
if (!System::IsUsingPS2BIOS()) [[unlikely]]
|
||||
if (System::IsUsingKnownPS1BIOS()) [[unlikely]]
|
||||
{
|
||||
// Throw exception when not using PS2 BIOS.
|
||||
return UnmappedReadHandler<size>(address);
|
||||
@ -1670,7 +1670,7 @@ template<MemoryAccessSize size>
|
||||
void Bus::SIO2WriteHandler(PhysicalMemoryAddress address, u32 value)
|
||||
{
|
||||
// Stub for using PS2 BIOS.
|
||||
if (!System::IsUsingPS2BIOS()) [[unlikely]]
|
||||
if (System::IsUsingKnownPS1BIOS()) [[unlikely]]
|
||||
{
|
||||
// Throw exception when not using PS2 BIOS.
|
||||
UnmappedWriteHandler<size>(address, value);
|
||||
|
@ -795,9 +795,9 @@ System::BootMode System::GetBootMode()
|
||||
return s_state.boot_mode;
|
||||
}
|
||||
|
||||
bool System::IsUsingPS2BIOS()
|
||||
bool System::IsUsingKnownPS1BIOS()
|
||||
{
|
||||
return (s_state.bios_image_info && s_state.bios_image_info->fastboot_patch == BIOS::ImageInfo::FastBootPatch::Type2);
|
||||
return (s_state.bios_image_info && s_state.bios_image_info->fastboot_patch == BIOS::ImageInfo::FastBootPatch::Type1);
|
||||
}
|
||||
|
||||
bool System::IsDiscPath(std::string_view path)
|
||||
|
@ -226,7 +226,7 @@ const std::string& GetExeOverride();
|
||||
const GameDatabase::Entry* GetGameDatabaseEntry();
|
||||
GameHash GetGameHash();
|
||||
bool IsRunningUnknownGame();
|
||||
bool IsUsingPS2BIOS();
|
||||
bool IsUsingKnownPS1BIOS();
|
||||
BootMode GetBootMode();
|
||||
|
||||
/// Returns the time elapsed in the current play session.
|
||||
|
Loading…
x
Reference in New Issue
Block a user