From 7e7b7dc216bad816d9390cec086ee3628c499e44 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 9 Nov 2019 00:21:04 +1000 Subject: [PATCH] CDROM: Stub out SCEx test commands --- src/core/cdrom.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/core/cdrom.cpp b/src/core/cdrom.cpp index 7739de756..fac91fabf 100644 --- a/src/core/cdrom.cpp +++ b/src/core/cdrom.cpp @@ -941,6 +941,27 @@ void CDROM::ExecuteTestCommand(u8 subcommand) { switch (subcommand) { + case 0x04: // Reset SCEx counters + { + Log_DebugPrintf("Reset SCEx counters"); + m_secondary_status.motor_on = true; + m_response_fifo.Push(m_secondary_status.bits); + SetInterrupt(Interrupt::ACK); + EndCommand(); + return; + } + + case 0x05: // Read SCEx counters + { + Log_DebugPrintf("Read SCEx counters"); + m_response_fifo.Push(m_secondary_status.bits); + m_response_fifo.Push(0); // # of TOC reads? + m_response_fifo.Push(0); // # of SCEx strings received + SetInterrupt(Interrupt::ACK); + EndCommand(); + return; + } + case 0x20: // Get CDROM BIOS Date/Version { Log_DebugPrintf("Get CDROM BIOS Date/Version");