summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/VolumeGC.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2020-06-07 14:11:00 +0200
committerJosJuice <josjuice@gmail.com>2020-06-07 14:11:00 +0200
commit162e3be82bcfde1f5fc2cd304b70765c342dac2f (patch)
tree4fbfebe634290deac1a69981e1414aa30b737951 /Source/Core/DiscIO/VolumeGC.cpp
parentd89162c8adeced084c39059a399352723ae43d2d (diff)
Show an OSD message when running a disc image with a large block size
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.
Diffstat (limited to 'Source/Core/DiscIO/VolumeGC.cpp')
-rw-r--r--Source/Core/DiscIO/VolumeGC.cpp5
1 files changed, 5 insertions, 0 deletions
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<u8> VolumeGC::GetDiscNumber(const Partition& partition) const
{
return ReadSwapped<u8>(6, partition);