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:
@ -17,7 +17,7 @@ namespace DiscIO
|
||||
class PlainFileReader : public IBlobReader
|
||||
{
|
||||
public:
|
||||
static std::unique_ptr<PlainFileReader> Create(const std::string& filename);
|
||||
static std::unique_ptr<PlainFileReader> Create(File::IOFile file);
|
||||
|
||||
BlobType GetBlobType() const override { return BlobType::PLAIN; }
|
||||
u64 GetDataSize() const override { return m_size; }
|
||||
@ -25,7 +25,7 @@ public:
|
||||
bool Read(u64 offset, u64 nbytes, u8* out_ptr) override;
|
||||
|
||||
private:
|
||||
PlainFileReader(std::FILE* file);
|
||||
PlainFileReader(File::IOFile file);
|
||||
|
||||
File::IOFile m_file;
|
||||
s64 m_size;
|
||||
|
Reference in New Issue
Block a user