From 5cd261a5b24cebd2e99c2ff78d120de5fba1c469 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Tue, 5 Jan 2021 12:20:17 +1000 Subject: [PATCH] BIOS: Only match PS1 and PS2 BIOS images exactly --- src/core/host_interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/host_interface.cpp b/src/core/host_interface.cpp index ed73b6250..ef29745cf 100644 --- a/src/core/host_interface.cpp +++ b/src/core/host_interface.cpp @@ -304,7 +304,7 @@ std::optional> HostInterface::FindBIOSImageInDirectory(ConsoleRe for (const FILESYSTEM_FIND_DATA& fd : results) { - if (fd.Size < BIOS::BIOS_SIZE || fd.Size > BIOS::BIOS_SIZE_PS2) + if (fd.Size != BIOS::BIOS_SIZE && fd.Size != BIOS::BIOS_SIZE_PS2) { Log_WarningPrintf("Skipping '%s': incorrect size", fd.FileName.c_str()); continue;