diff options
| author | 2018-07-20 09:21:15 -0700 | |
|---|---|---|
| committer | 2018-07-20 09:21:15 -0700 | |
| commit | ffbd51e207fb5e2aaaa5f5a8861d4d3e55188376 (patch) | |
| tree | 812c30415af58b2a478b005b10b81cd69bb5a5cd /src/core/loader/nca.cpp | |
| 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.gz yuzu-ffbd51e207fb5e2aaaa5f5a8861d4d3e55188376.tar.xz yuzu-ffbd51e207fb5e2aaaa5f5a8861d4d3e55188376.zip | |
Merge pull request #737 from lioncash/move
filesys/loader: std::move VirtualFile instances in constructors where applicable
Diffstat (limited to 'src/core/loader/nca.cpp')
| -rw-r--r-- | src/core/loader/nca.cpp | 3 |
1 files changed, 2 insertions, 1 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 @@ | |||
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include <utility> | ||
| 5 | #include <vector> | 6 | #include <vector> |
| 6 | 7 | ||
| 7 | #include "common/file_util.h" | 8 | #include "common/file_util.h" |
| @@ -21,7 +22,7 @@ | |||
| 21 | 22 | ||
| 22 | namespace Loader { | 23 | namespace Loader { |
| 23 | 24 | ||
| 24 | AppLoader_NCA::AppLoader_NCA(FileSys::VirtualFile file) : AppLoader(file) {} | 25 | AppLoader_NCA::AppLoader_NCA(FileSys::VirtualFile file) : AppLoader(std::move(file)) {} |
| 25 | 26 | ||
| 26 | FileType AppLoader_NCA::IdentifyType(const FileSys::VirtualFile& file) { | 27 | FileType AppLoader_NCA::IdentifyType(const FileSys::VirtualFile& file) { |
| 27 | // TODO(DarkLordZach): Assuming everything is decrypted. Add crypto support. | 28 | // TODO(DarkLordZach): Assuming everything is decrypted. Add crypto support. |