DiscIO: drop unused Volume::CheckContentIntegrity() overload
The offset-based overload hasn't been in use since
f754a1a548
.
This commit is contained in:
parent
8167a046ef
commit
4619db2ae9
|
@ -91,11 +91,6 @@ public:
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
virtual bool CheckContentIntegrity(const IOS::ES::Content& content, u64 content_offset,
|
|
||||||
const IOS::ES::TicketReader& ticket) const
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
virtual IOS::ES::TicketReader GetTicketWithFixedCommonKey() const { return {}; }
|
virtual IOS::ES::TicketReader GetTicketWithFixedCommonKey() const { return {}; }
|
||||||
// Returns a non-owning pointer. Returns nullptr if the file system couldn't be read.
|
// Returns a non-owning pointer. Returns nullptr if the file system couldn't be read.
|
||||||
virtual const FileSystem* GetFileSystem(const Partition& partition) const = 0;
|
virtual const FileSystem* GetFileSystem(const Partition& partition) const = 0;
|
||||||
|
|
|
@ -170,15 +170,6 @@ bool VolumeWAD::CheckContentIntegrity(const IOS::ES::Content& content,
|
||||||
return Common::SHA1::CalculateDigest(decrypted_data.data(), content.size) == content.sha1;
|
return Common::SHA1::CalculateDigest(decrypted_data.data(), content.size) == content.sha1;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool VolumeWAD::CheckContentIntegrity(const IOS::ES::Content& content, u64 content_offset,
|
|
||||||
const IOS::ES::TicketReader& ticket) const
|
|
||||||
{
|
|
||||||
std::vector<u8> encrypted_data(Common::AlignUp(content.size, 0x40));
|
|
||||||
if (!m_reader->Read(content_offset, encrypted_data.size(), encrypted_data.data()))
|
|
||||||
return false;
|
|
||||||
return CheckContentIntegrity(content, encrypted_data, ticket);
|
|
||||||
}
|
|
||||||
|
|
||||||
IOS::ES::TicketReader VolumeWAD::GetTicketWithFixedCommonKey() const
|
IOS::ES::TicketReader VolumeWAD::GetTicketWithFixedCommonKey() const
|
||||||
{
|
{
|
||||||
if (!m_ticket.IsValid() || !m_tmd.IsValid())
|
if (!m_ticket.IsValid() || !m_tmd.IsValid())
|
||||||
|
|
|
@ -40,8 +40,6 @@ public:
|
||||||
std::vector<u64> GetContentOffsets() const override;
|
std::vector<u64> GetContentOffsets() const override;
|
||||||
bool CheckContentIntegrity(const IOS::ES::Content& content, const std::vector<u8>& encrypted_data,
|
bool CheckContentIntegrity(const IOS::ES::Content& content, const std::vector<u8>& encrypted_data,
|
||||||
const IOS::ES::TicketReader& ticket) const override;
|
const IOS::ES::TicketReader& ticket) const override;
|
||||||
bool CheckContentIntegrity(const IOS::ES::Content& content, u64 content_offset,
|
|
||||||
const IOS::ES::TicketReader& ticket) const override;
|
|
||||||
IOS::ES::TicketReader GetTicketWithFixedCommonKey() const override;
|
IOS::ES::TicketReader GetTicketWithFixedCommonKey() const override;
|
||||||
std::string GetGameID(const Partition& partition = PARTITION_NONE) const override;
|
std::string GetGameID(const Partition& partition = PARTITION_NONE) const override;
|
||||||
std::string GetGameTDBID(const Partition& partition = PARTITION_NONE) const override;
|
std::string GetGameTDBID(const Partition& partition = PARTITION_NONE) const override;
|
||||||
|
|
Loading…
Reference in New Issue