mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-10 18:18:49 +00:00
DiscIO: implement WbfsBlob::GetDataSize()
This commit is contained in:
parent
a92b4bda95
commit
1a8e2e16e3
2 changed files with 11 additions and 1 deletions
|
@ -20,7 +20,12 @@ public:
|
|||
static WbfsFileReader* Create(const std::string& filename);
|
||||
|
||||
BlobType GetBlobType() const override { return BlobType::WBFS; }
|
||||
u64 GetDataSize() const override { return m_size; }
|
||||
|
||||
// The WBFS format does not save the original file size.
|
||||
// This function returns a constant upper bound
|
||||
// (the size of a double-layer Wii disc).
|
||||
u64 GetDataSize() const override;
|
||||
|
||||
u64 GetRawSize() const override { return m_size; }
|
||||
bool Read(u64 offset, u64 nbytes, u8* out_ptr) override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue