diff options
author | Liam <byteslice@airmail.cc> | 2023-10-13 19:34:41 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-10-13 20:22:52 +0200 |
commit | 053a16799ef2746763f33a67918a7b87daddf2d0 (patch) | |
tree | c26537689565094cf3df8be17bccee33bc317540 /src/core/file_sys/patch_manager.cpp | |
parent | Merge pull request #11769 from liamwhite/qt-ownership-issue (diff) | |
download | yuzu-053a16799ef2746763f33a67918a7b87daddf2d0.tar yuzu-053a16799ef2746763f33a67918a7b87daddf2d0.tar.gz yuzu-053a16799ef2746763f33a67918a7b87daddf2d0.tar.bz2 yuzu-053a16799ef2746763f33a67918a7b87daddf2d0.tar.lz yuzu-053a16799ef2746763f33a67918a7b87daddf2d0.tar.xz yuzu-053a16799ef2746763f33a67918a7b87daddf2d0.tar.zst yuzu-053a16799ef2746763f33a67918a7b87daddf2d0.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/file_sys/patch_manager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp index 8e475f25a..0bca05587 100644 --- a/src/core/file_sys/patch_manager.cpp +++ b/src/core/file_sys/patch_manager.cpp @@ -377,16 +377,16 @@ static void ApplyLayeredFS(VirtualFile& romfs, u64 title_id, ContentRecordType t auto romfs_dir = FindSubdirectoryCaseless(subdir, "romfs"); if (romfs_dir != nullptr) - layers.push_back(std::make_shared<CachedVfsDirectory>(romfs_dir)); + layers.emplace_back(std::make_shared<CachedVfsDirectory>(std::move(romfs_dir))); auto ext_dir = FindSubdirectoryCaseless(subdir, "romfs_ext"); if (ext_dir != nullptr) - layers_ext.push_back(std::make_shared<CachedVfsDirectory>(ext_dir)); + layers_ext.emplace_back(std::make_shared<CachedVfsDirectory>(std::move(ext_dir))); if (type == ContentRecordType::HtmlDocument) { auto manual_dir = FindSubdirectoryCaseless(subdir, "manual_html"); if (manual_dir != nullptr) - layers.push_back(std::make_shared<CachedVfsDirectory>(manual_dir)); + layers.emplace_back(std::make_shared<CachedVfsDirectory>(std::move(manual_dir))); } } @@ -400,7 +400,7 @@ static void ApplyLayeredFS(VirtualFile& romfs, u64 title_id, ContentRecordType t return; } - layers.push_back(std::move(extracted)); + layers.emplace_back(std::move(extracted)); auto layered = LayeredVfsDirectory::MakeLayeredDirectory(std::move(layers)); if (layered == nullptr) { |