Fix DVDLowReset spinup flag being read incorrectly

This commit is contained in:
Pokechu22 2020-04-12 22:28:22 -07:00
parent 9a8d426645
commit a73eaf5712
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ std::optional<DI::DIResult> DI::StartIOCtl(const IOCtlRequest& request)
return DIResult::Success; return DIResult::Success;
case DIIoctl::DVDLowReset: case DIIoctl::DVDLowReset:
{ {
const bool spinup = Memory::Read_U32(request.address + 4); const bool spinup = Memory::Read_U32(request.buffer_in + 4);
INFO_LOG(IOS_DI, "DVDLowReset %s spinup", spinup ? "with" : "without"); INFO_LOG(IOS_DI, "DVDLowReset %s spinup", spinup ? "with" : "without");
DVDInterface::ResetDrive(spinup); DVDInterface::ResetDrive(spinup);
ResetDIRegisters(); ResetDIRegisters();