mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -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:
@ -34,7 +34,7 @@ struct CISOHeader
|
||||
class CISOFileReader : public IBlobReader
|
||||
{
|
||||
public:
|
||||
static std::unique_ptr<CISOFileReader> Create(const std::string& filename);
|
||||
static std::unique_ptr<CISOFileReader> Create(File::IOFile file);
|
||||
|
||||
BlobType GetBlobType() const override { return BlobType::CISO; }
|
||||
// The CISO format does not save the original file size.
|
||||
@ -45,7 +45,7 @@ public:
|
||||
bool Read(u64 offset, u64 nbytes, u8* out_ptr) override;
|
||||
|
||||
private:
|
||||
CISOFileReader(std::FILE* file);
|
||||
CISOFileReader(File::IOFile file);
|
||||
|
||||
typedef u16 MapType;
|
||||
static const MapType UNUSED_BLOCK_ID = -1;
|
||||
|
Reference in New Issue
Block a user