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:
parent
531c6f94d5
commit
d9d91381b5
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue