mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00: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:
parent
8d54bbc528
commit
5c02795af0
3 changed files with 44 additions and 33 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue