From 4c7e57ebd6a80e805131a979e5b61ece1f87e0da Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Fri, 26 Jan 2024 19:49:01 +0100 Subject: [PATCH] gdrom: revert SPI_TEST_UNIT change Fixes disk swapping for Alone in the Dark and Resident Evil: Code Veronica (real BIOS) Issue #1046 --- core/hw/gdrom/gdromv3.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/hw/gdrom/gdromv3.cpp b/core/hw/gdrom/gdromv3.cpp index 86758ee37..a32b4f527 100644 --- a/core/hw/gdrom/gdromv3.cpp +++ b/core/hw/gdrom/gdromv3.cpp @@ -665,7 +665,8 @@ static void gd_process_spi_cmd() { case SPI_TEST_UNIT: printf_spicmd("SPI_TEST_UNIT"); - // This device does not report the check condition status. + // needed by Alone in the Dark and Resident Evil: Code Veronica disk swapping + GDStatus.CHECK = SecNumber.Status == GD_BUSY; gd_set_state(gds_procpacketdone); break;