summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-09-26 23:25:14 +0200
committerLioncash <mathew1800@gmail.com>2018-09-26 23:35:44 +0200
commit861580f6d2a34326dd134c9767fbba945840ef1b (patch)
tree97ea7300be2fb03cc033f006f35e3b8bac84a006 /src
parentfsmitm_romfsbuild: Replace manual value aligning with Common::AlignUp() (diff)
downloadyuzu-861580f6d2a34326dd134c9767fbba945840ef1b.tar
yuzu-861580f6d2a34326dd134c9767fbba945840ef1b.tar.gz
yuzu-861580f6d2a34326dd134c9767fbba945840ef1b.tar.bz2
yuzu-861580f6d2a34326dd134c9767fbba945840ef1b.tar.lz
yuzu-861580f6d2a34326dd134c9767fbba945840ef1b.tar.xz
yuzu-861580f6d2a34326dd134c9767fbba945840ef1b.tar.zst
yuzu-861580f6d2a34326dd134c9767fbba945840ef1b.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/file_sys/fsmitm_romfsbuild.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/file_sys/fsmitm_romfsbuild.cpp b/src/core/file_sys/fsmitm_romfsbuild.cpp
index 3a17864db..2a913ce82 100644
--- a/src/core/file_sys/fsmitm_romfsbuild.cpp
+++ b/src/core/file_sys/fsmitm_romfsbuild.cpp
@@ -345,7 +345,7 @@ std::map<u64, VirtualFile> RomFSBuildContext::Build() {
std::vector<u8> header_data(sizeof(RomFSHeader));
std::memcpy(header_data.data(), &header, header_data.size());
- out.emplace(0, std::make_shared<VectorVfsFile>(header_data));
+ out.emplace(0, std::make_shared<VectorVfsFile>(std::move(header_data)));
std::vector<u8> metadata(file_hash_table_size + file_table_size + dir_hash_table_size +
dir_table_size);
@@ -358,7 +358,7 @@ std::map<u64, VirtualFile> RomFSBuildContext::Build() {
file_hash_table.size() * sizeof(u32));
index += file_hash_table.size() * sizeof(u32);
std::memcpy(metadata.data() + index, file_table.data(), file_table.size());
- out.emplace(header.dir_hash_table_ofs, std::make_shared<VectorVfsFile>(metadata));
+ out.emplace(header.dir_hash_table_ofs, std::make_shared<VectorVfsFile>(std::move(metadata)));
return out;
}