CDROM: Track seek position when resetting

Fixes Blasto hanging after starting game.
This commit is contained in:
Connor McLaughlin
2020-07-11 20:34:16 +10:00
parent d1a2ebd8f3
commit 50a25b63b1
2 changed files with 7 additions and 2 deletions

View File

@ -1184,7 +1184,9 @@ void CDROM::ExecuteCommand()
UpdatePositionWhileSeeking();
m_drive_state = DriveState::Resetting;
m_drive_event->Schedule(400000 + GetTicksForSeek(0));
m_drive_event->SetIntervalAndSchedule(BASE_RESET_TICKS + GetTicksForSeek(0));
m_seek_start_lba = m_current_lba;
m_seek_end_lba = 0;
EndCommand();
return;