From 162e3be82bcfde1f5fc2cd304b70765c342dac2f Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sun, 7 Jun 2020 14:11:00 +0200 Subject: Show an OSD message when running a disc image with a large block size MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is intended to catch WIA files which have been created using wit's default parameters (40 MiB block size), once the WIA PR is merged. The check does however also work for GCZ files – not that I think anyone has a GCZ file with a block size that large. --- Source/Core/DiscIO/VolumeGC.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Source/Core/DiscIO/VolumeGC.cpp') diff --git a/Source/Core/DiscIO/VolumeGC.cpp b/Source/Core/DiscIO/VolumeGC.cpp index 9ecb8bb266..74b612f647 100644 --- a/Source/Core/DiscIO/VolumeGC.cpp +++ b/Source/Core/DiscIO/VolumeGC.cpp @@ -188,6 +188,11 @@ u64 VolumeGC::GetRawSize() const return m_reader->GetRawSize(); } +const BlobReader& VolumeGC::GetBlobReader() const +{ + return *m_reader; +} + std::optional VolumeGC::GetDiscNumber(const Partition& partition) const { return ReadSwapped(6, partition); -- cgit v1.2.3