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/VolumeFileBlobReader.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Source/Core/DiscIO/VolumeFileBlobReader.h') diff --git a/Source/Core/DiscIO/VolumeFileBlobReader.h b/Source/Core/DiscIO/VolumeFileBlobReader.h index bbc75d61b6..8e227ece63 100644 --- a/Source/Core/DiscIO/VolumeFileBlobReader.h +++ b/Source/Core/DiscIO/VolumeFileBlobReader.h @@ -23,9 +23,14 @@ public: Create(const Volume& volume, const Partition& partition, std::string_view file_path); BlobType GetBlobType() const override { return BlobType::PLAIN; } + u64 GetRawSize() const override; u64 GetDataSize() const override; bool IsDataSizeAccurate() const override { return true; } + + u64 GetBlockSize() const override; + bool HasFastRandomAccessInBlock() const override; + bool Read(u64 offset, u64 length, u8* out_ptr) override; private: -- cgit v1.2.3