diff options
| author | Leo Lam <leolino.lam@gmail.com> | 2017-06-15 21:24:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-15 21:24:42 +0200 |
| commit | 09c0a3caaff4961dc33df35cbf6baf09b94d56ec (patch) | |
| tree | 24bc5a9610afab5b95dd5930d8266c9288428510 /Source/Core/DiscIO/VolumeWii.cpp | |
| parent | 335f54cac6ed15148fb7f959ccee9d63b583ea32 (diff) | |
| parent | 583406d900bd0ca9111135c6a9e526aed67e8322 (diff) | |
Merge pull request #2820 from JosJuice/filesystem
Filesystem redesign and performance improvements
Diffstat (limited to 'Source/Core/DiscIO/VolumeWii.cpp')
| -rw-r--r-- | Source/Core/DiscIO/VolumeWii.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/VolumeWii.cpp b/Source/Core/DiscIO/VolumeWii.cpp index ceb1fa5788..b8215527a6 100644 --- a/Source/Core/DiscIO/VolumeWii.cpp +++ b/Source/Core/DiscIO/VolumeWii.cpp @@ -274,8 +274,9 @@ std::map<Language, std::string> VolumeWii::GetLongNames() const return {}; std::vector<u8> opening_bnr(NAMES_TOTAL_BYTES); - size_t size = file_system->ReadFile("opening.bnr", opening_bnr.data(), opening_bnr.size(), 0x5C); - opening_bnr.resize(size); + std::unique_ptr<FileInfo> file_info = file_system->FindFileInfo("opening.bnr"); + opening_bnr.resize( + file_system->ReadFile(file_info.get(), opening_bnr.data(), opening_bnr.size(), 0x5C)); return ReadWiiNames(opening_bnr); } |
