gdrom: delay "no disk" reporting to let the BIOS play the boot animation

Thanks to kihato for the prototype code.
Issue #587
This commit is contained in:
Flyinghead 2024-02-07 16:11:25 +01:00
parent 531c6f94d5
commit d9d91381b5
1 changed files with 12 additions and 1 deletions

View File

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