summaryrefslogtreecommitdiffstats
path: root/src/core/loader
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-07-20 06:10:21 +0200
committerLioncash <mathew1800@gmail.com>2018-07-20 06:10:24 +0200
commit8874d0e657be9b2f03608a91bcf5edf433e576c7 (patch)
treefaa01fd0bc8d50581eb118e669e7d606fa460625 /src/core/loader
parentvfs_offset: std::move file and name parameters of OffsetVfsFile (diff)
downloadyuzu-8874d0e657be9b2f03608a91bcf5edf433e576c7.tar
yuzu-8874d0e657be9b2f03608a91bcf5edf433e576c7.tar.gz
yuzu-8874d0e657be9b2f03608a91bcf5edf433e576c7.tar.bz2
yuzu-8874d0e657be9b2f03608a91bcf5edf433e576c7.tar.lz
yuzu-8874d0e657be9b2f03608a91bcf5edf433e576c7.tar.xz
yuzu-8874d0e657be9b2f03608a91bcf5edf433e576c7.tar.zst
yuzu-8874d0e657be9b2f03608a91bcf5edf433e576c7.zip
Diffstat (limited to 'src/core/loader')
-rw-r--r--src/core/loader/nca.cpp3
-rw-r--r--src/core/loader/nro.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/core/loader/nca.cpp b/src/core/loader/nca.cpp
index e73b253b2..c80df23be 100644
--- a/src/core/loader/nca.cpp
+++ b/src/core/loader/nca.cpp
@@ -2,6 +2,7 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
+#include <utility>
#include <vector>
#include "common/file_util.h"
@@ -21,7 +22,7 @@
namespace Loader {
-AppLoader_NCA::AppLoader_NCA(FileSys::VirtualFile file) : AppLoader(file) {}
+AppLoader_NCA::AppLoader_NCA(FileSys::VirtualFile file) : AppLoader(std::move(file)) {}
FileType AppLoader_NCA::IdentifyType(const FileSys::VirtualFile& file) {
// TODO(DarkLordZach): Assuming everything is decrypted. Add crypto support.
diff --git a/src/core/loader/nro.cpp b/src/core/loader/nro.cpp
index 465b827bb..c020399f2 100644
--- a/src/core/loader/nro.cpp
+++ b/src/core/loader/nro.cpp
@@ -2,6 +2,7 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
+#include <utility>
#include <vector>
#include "common/common_funcs.h"
@@ -48,7 +49,7 @@ struct ModHeader {
};
static_assert(sizeof(ModHeader) == 0x1c, "ModHeader has incorrect size.");
-AppLoader_NRO::AppLoader_NRO(FileSys::VirtualFile file) : AppLoader(file) {}
+AppLoader_NRO::AppLoader_NRO(FileSys::VirtualFile file) : AppLoader(std::move(file)) {}
FileType AppLoader_NRO::IdentifyType(const FileSys::VirtualFile& file) {
// Read NSO header