diff options
author | Lioncash <mathew1800@gmail.com> | 2018-10-09 19:34:38 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-10-09 20:06:44 +0200 |
commit | 93ac8d0feadc129fdfdbaccd0c4e444b34ce2f15 (patch) | |
tree | d7e1ae28eb1fca1538a78db89de350972d1ec111 | |
parent | Merge pull request #1423 from DarkLordZach/romfs-file-exts (diff) | |
download | yuzu-93ac8d0feadc129fdfdbaccd0c4e444b34ce2f15.tar yuzu-93ac8d0feadc129fdfdbaccd0c4e444b34ce2f15.tar.gz yuzu-93ac8d0feadc129fdfdbaccd0c4e444b34ce2f15.tar.bz2 yuzu-93ac8d0feadc129fdfdbaccd0c4e444b34ce2f15.tar.lz yuzu-93ac8d0feadc129fdfdbaccd0c4e444b34ce2f15.tar.xz yuzu-93ac8d0feadc129fdfdbaccd0c4e444b34ce2f15.tar.zst yuzu-93ac8d0feadc129fdfdbaccd0c4e444b34ce2f15.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/file_sys/ips_layer.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/file_sys/ips_layer.cpp b/src/core/file_sys/ips_layer.cpp index 0cadbc375..b7a3df1b0 100644 --- a/src/core/file_sys/ips_layer.cpp +++ b/src/core/file_sys/ips_layer.cpp @@ -90,7 +90,9 @@ VirtualFile PatchIPS(const VirtualFile& in, const VirtualFile& ips) { if (temp != std::vector<u8>{'E', 'E', 'O', 'F'} && temp != std::vector<u8>{'E', 'O', 'F'}) return nullptr; - return std::make_shared<VectorVfsFile>(in_data, in->GetName(), in->GetContainingDirectory()); + + return std::make_shared<VectorVfsFile>(std::move(in_data), in->GetName(), + in->GetContainingDirectory()); } IPSwitchCompiler::IPSwitchCompiler(VirtualFile patch_text_) : patch_text(std::move(patch_text_)) { @@ -291,7 +293,8 @@ VirtualFile IPSwitchCompiler::Apply(const VirtualFile& in) const { } } - return std::make_shared<VectorVfsFile>(in_data, in->GetName(), in->GetContainingDirectory()); + return std::make_shared<VectorVfsFile>(std::move(in_data), in->GetName(), + in->GetContainingDirectory()); } } // namespace FileSys |