WIA: Implement ReadWiiDecrypted

This commit is contained in:
JosJuice
2019-12-27 22:26:00 +01:00
parent 2a5fcc9c25
commit 3672bd79f3
2 changed files with 102 additions and 35 deletions

View File

@ -33,11 +33,17 @@ public:
bool HasFastRandomAccessInBlock() const override { return false; }
bool Read(u64 offset, u64 size, u8* out_ptr) override;
bool SupportsReadWiiDecrypted() const override;
bool ReadWiiDecrypted(u64 offset, u64 size, u8* out_ptr, u64 partition_data_offset) override;
private:
explicit WIAFileReader(File::IOFile file, const std::string& path);
bool Initialize(const std::string& path);
bool ReadFromGroups(u64* offset, u64* size, u8** out_ptr, u64 chunk_size, u32 sector_size,
u64 data_offset, u64 data_size, u32 group_index, u32 number_of_groups,
bool exception_list);
static std::string VersionToString(u32 version);
using SHA1 = std::array<u8, 20>;