mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 04:38:49 +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
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue