From d9d91381b5da5cc8263c7a8a774be8ce01dd69b4 Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Wed, 7 Feb 2024 16:11:25 +0100 Subject: [PATCH] gdrom: delay "no disk" reporting to let the BIOS play the boot animation Thanks to kihato for the prototype code. Issue #587 --- core/imgread/common.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/core/imgread/common.cpp b/core/imgread/common.cpp index 151ec55dd..6aa6853f5 100644 --- a/core/imgread/common.cpp +++ b/core/imgread/common.cpp @@ -125,7 +125,18 @@ static bool doDiscSwap(const std::string& path); bool InitDrive(const std::string& path) { bool rc = doDiscSwap(path); - gd_setdisc(); + if (rc && disc == nullptr) + { + // Drive is busy + sns_asc = 4; + sns_ascq = 1; + sns_key = 2; + SecNumber.Status = GD_BUSY; + sh4_sched_request(schedId, SH4_MAIN_CLOCK); + } + else { + gd_setdisc(); + } return rc; }