Skip to content

Commit

Permalink
gdrom: delay "no disk" reporting to let the BIOS play the boot animation
Browse files Browse the repository at this point in the history
Thanks to kihato for the prototype code.
Issue flyinghead#587
  • Loading branch information
flyinghead committed Feb 7, 2024
1 parent 531c6f9 commit d9d9138
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion core/imgread/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d9d9138

Please sign in to comment.