diff options
author | bunnei <bunneidev@gmail.com> | 2018-07-20 18:21:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-20 18:21:15 +0200 |
commit | ffbd51e207fb5e2aaaa5f5a8861d4d3e55188376 (patch) | |
tree | 812c30415af58b2a478b005b10b81cd69bb5a5cd /src/core/loader | |
parent | Merge pull request #736 from lioncash/null (diff) | |
parent | loader/{nca, nro}: std::move VirtualFile in the constructors where applicable (diff) | |
download | yuzu-ffbd51e207fb5e2aaaa5f5a8861d4d3e55188376.tar yuzu-ffbd51e207fb5e2aaaa5f5a8861d4d3e55188376.tar.gz yuzu-ffbd51e207fb5e2aaaa5f5a8861d4d3e55188376.tar.bz2 yuzu-ffbd51e207fb5e2aaaa5f5a8861d4d3e55188376.tar.lz yuzu-ffbd51e207fb5e2aaaa5f5a8861d4d3e55188376.tar.xz yuzu-ffbd51e207fb5e2aaaa5f5a8861d4d3e55188376.tar.zst yuzu-ffbd51e207fb5e2aaaa5f5a8861d4d3e55188376.zip |
Diffstat (limited to 'src/core/loader')
-rw-r--r-- | src/core/loader/nca.cpp | 3 | ||||
-rw-r--r-- | src/core/loader/nro.cpp | 3 |
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 |