Never decrypt data when using DI command 0xA8

CleanRip relies on this when ripping Wii discs.
This commit is contained in:
JosJuice 2014-12-27 13:49:25 +01:00
parent 339383b8dd
commit 72f8f243c7
2 changed files with 8 additions and 4 deletions

View File

@ -875,13 +875,13 @@ DVDCommandResult ExecuteCommand(u32 command_0, u32 command_1, u32 command_2,
} }
} }
result = ExecuteReadCommand(iDVDOffset, output_address, command_2, output_length); result = ExecuteReadCommand(iDVDOffset, output_address, command_2, output_length, true);
} }
break; break;
case 0x40: // Read DiscID case 0x40: // Read DiscID
INFO_LOG(DVDINTERFACE, "Read DiscID %08x", Memory::Read_U32(output_address)); INFO_LOG(DVDINTERFACE, "Read DiscID %08x", Memory::Read_U32(output_address));
result = ExecuteReadCommand(0, output_address, 0x20, output_length); result = ExecuteReadCommand(0, output_address, 0x20, output_length, true);
break; break;
default: default:

View File

@ -15,6 +15,7 @@
#include "Common/CommonTypes.h" #include "Common/CommonTypes.h"
#include "Common/FileUtil.h" #include "Common/FileUtil.h"
#include "Common/MathUtil.h" #include "Common/MathUtil.h"
#include "Core/VolumeHandler.h"
#include "DiscIO/FileBlob.h" #include "DiscIO/FileBlob.h"
#include "DiscIO/Volume.h" #include "DiscIO/Volume.h"
#include "DiscIO/VolumeDirectory.h" #include "DiscIO/VolumeDirectory.h"
@ -63,9 +64,12 @@ bool CVolumeDirectory::IsValidDirectory(const std::string& _rDirectory)
return File::IsDirectory(directoryName); return File::IsDirectory(directoryName);
} }
bool CVolumeDirectory::RAWRead( u64 _Offset, u64 _Length, u8* _pBuffer ) const bool CVolumeDirectory::RAWRead(u64 _Offset, u64 _Length, u8* _pBuffer) const
{ {
return false; if (VolumeHandler::IsWii())
return false;
else
return Read(_Offset, _Length, _pBuffer);
} }
bool CVolumeDirectory::Read(u64 _Offset, u64 _Length, u8* _pBuffer) const bool CVolumeDirectory::Read(u64 _Offset, u64 _Length, u8* _pBuffer) const