summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/romfs.cpp
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-10-13 19:34:41 +0200
committerLiam <byteslice@airmail.cc>2023-10-13 20:22:52 +0200
commit053a16799ef2746763f33a67918a7b87daddf2d0 (patch)
treec26537689565094cf3df8be17bccee33bc317540 /src/core/file_sys/romfs.cpp
parentMerge pull request #11769 from liamwhite/qt-ownership-issue (diff)
downloadyuzu-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 'src/core/file_sys/romfs.cpp')
-rw-r--r--src/core/file_sys/romfs.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/file_sys/romfs.cpp b/src/core/file_sys/romfs.cpp
index 614da2130..1c580de57 100644
--- a/src/core/file_sys/romfs.cpp
+++ b/src/core/file_sys/romfs.cpp
@@ -133,7 +133,7 @@ VirtualDir ExtractRomFS(VirtualFile file, RomFSExtractionType type) {
out = out->GetSubdirectories().front();
}
- return std::make_shared<CachedVfsDirectory>(out);
+ return std::make_shared<CachedVfsDirectory>(std::move(out));
}
VirtualFile CreateRomFS(VirtualDir dir, VirtualDir ext) {
@@ -141,8 +141,7 @@ VirtualFile CreateRomFS(VirtualDir dir, VirtualDir ext) {
return nullptr;
RomFSBuildContext ctx{dir, ext};
- auto file_map = ctx.Build();
- return ConcatenatedVfsFile::MakeConcatenatedFile(0, file_map, dir->GetName());
+ return ConcatenatedVfsFile::MakeConcatenatedFile(0, dir->GetName(), ctx.Build());
}
} // namespace FileSys