mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
WbfsBlob: Only open each file once
The first file used to be opened once by CreateBlobReader and once inside WbfsFileReader.
This commit is contained in:
@ -199,7 +199,7 @@ std::unique_ptr<IBlobReader> CreateBlobReader(const std::string& filename)
|
||||
case TGC_MAGIC:
|
||||
return TGCFileReader::Create(std::move(file));
|
||||
case WBFS_MAGIC:
|
||||
return WbfsFileReader::Create(filename);
|
||||
return WbfsFileReader::Create(std::move(file), filename);
|
||||
default:
|
||||
return PlainFileReader::Create(std::move(file));
|
||||
}
|
||||
|
Reference in New Issue
Block a user