mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 05:08:57 +00:00
Don't create new IOFiles when creating a blob
...except for WBFS, which is special because it has the ability to open multiple files.
This commit is contained in:
parent
d1ea00ed88
commit
8d54bbc528
10 changed files with 93 additions and 80 deletions
|
@ -40,7 +40,7 @@ struct TGCHeader
|
|||
class TGCFileReader final : public IBlobReader
|
||||
{
|
||||
public:
|
||||
static std::unique_ptr<TGCFileReader> Create(const std::string& filename);
|
||||
static std::unique_ptr<TGCFileReader> Create(File::IOFile file);
|
||||
|
||||
BlobType GetBlobType() const override { return BlobType::TGC; }
|
||||
u64 GetDataSize() const override;
|
||||
|
@ -48,7 +48,7 @@ public:
|
|||
bool Read(u64 offset, u64 nbytes, u8* out_ptr) override;
|
||||
|
||||
private:
|
||||
TGCFileReader(File::IOFile&& file);
|
||||
TGCFileReader(File::IOFile file);
|
||||
|
||||
bool InternalRead(u64 offset, u64 nbytes, u8* out_ptr);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue