Bus: Enable SIO2 on any unknown BIOS

Not all PS2 BIOSes are in the list.
This commit is contained in:
Stenzek 2025-05-14 23:09:52 +10:00
parent 2ed7aa5536
commit 7932618424
No known key found for this signature in database
3 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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)

View File

@ -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.