diff options
| author | JosJuice <josjuice@gmail.com> | 2020-06-07 14:11:00 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2020-06-07 14:11:00 +0200 |
| commit | 162e3be82bcfde1f5fc2cd304b70765c342dac2f (patch) | |
| tree | 4fbfebe634290deac1a69981e1414aa30b737951 /Source/Core/DiscIO/VolumeFileBlobReader.h | |
| parent | d89162c8adeced084c39059a399352723ae43d2d (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/VolumeFileBlobReader.h')
| -rw-r--r-- | Source/Core/DiscIO/VolumeFileBlobReader.h | 5 |
1 files changed, 5 insertions, 0 deletions
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: |
