summaryrefslogtreecommitdiff
path: root/src/core/loader/nro.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2018-01-20 15:48:37 -0500
committerGravatar bunnei2018-01-20 15:54:17 -0500
commit386df282a3ad340ddaf7ab054102858406b27198 (patch)
tree3b7e44f33dac0384d412fed61de3c5ad40db137d /src/core/loader/nro.cpp
parentloader: Add DeconstructedRomDirectory for game dumps. (diff)
downloadyuzu-386df282a3ad340ddaf7ab054102858406b27198.tar.gz
yuzu-386df282a3ad340ddaf7ab054102858406b27198.tar.xz
yuzu-386df282a3ad340ddaf7ab054102858406b27198.zip
loader: Clean up ctors and includes.
Diffstat (limited to 'src/core/loader/nro.cpp')
-rw-r--r--src/core/loader/nro.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/loader/nro.cpp b/src/core/loader/nro.cpp
index ac730f8a3..0a087153f 100644
--- a/src/core/loader/nro.cpp
+++ b/src/core/loader/nro.cpp
@@ -5,6 +5,7 @@
5#include <vector> 5#include <vector>
6 6
7#include "common/common_funcs.h" 7#include "common/common_funcs.h"
8#include "common/file_util.h"
8#include "common/logging/log.h" 9#include "common/logging/log.h"
9#include "common/swap.h" 10#include "common/swap.h"
10#include "core/hle/kernel/process.h" 11#include "core/hle/kernel/process.h"
@@ -45,6 +46,9 @@ struct ModHeader {
45}; 46};
46static_assert(sizeof(ModHeader) == 0x1c, "ModHeader has incorrect size."); 47static_assert(sizeof(ModHeader) == 0x1c, "ModHeader has incorrect size.");
47 48
49AppLoader_NRO::AppLoader_NRO(FileUtil::IOFile&& file, std::string filepath)
50 : AppLoader(std::move(file)), filepath(std::move(filepath)) {}
51
48FileType AppLoader_NRO::IdentifyType(FileUtil::IOFile& file, const std::string&) { 52FileType AppLoader_NRO::IdentifyType(FileUtil::IOFile& file, const std::string&) {
49 // Read NSO header 53 // Read NSO header
50 NroHeader nro_header{}; 54 NroHeader nro_header{};