Merge pull request #9852 from Pokechu22/wii-change-disc

DVDInterface: Fix decrypting reads clearing the drive state
This commit is contained in:
Tilka 2021-06-29 04:09:28 +01:00 committed by GitHub
commit 3b3fb9d4c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -1251,7 +1251,9 @@ void PerformDecryptingRead(u32 position, u32 length, u32 output_address,
const DiscIO::Partition& partition, ReplyType reply_type) const DiscIO::Partition& partition, ReplyType reply_type)
{ {
DIInterruptType interrupt_type = DIInterruptType::TCINT; DIInterruptType interrupt_type = DIInterruptType::TCINT;
SetDriveState(DriveState::Ready);
if (s_drive_state == DriveState::ReadyNoReadsMade)
SetDriveState(DriveState::Ready);
const bool command_handled_by_thread = const bool command_handled_by_thread =
ExecuteReadCommand(static_cast<u64>(position) << 2, output_address, length, length, partition, ExecuteReadCommand(static_cast<u64>(position) << 2, output_address, length, length, partition,