mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06: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:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user