summaryrefslogtreecommitdiff
path: root/src/core/loader/nso.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/nso.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/nso.cpp')
-rw-r--r--src/core/loader/nso.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/loader/nso.cpp b/src/core/loader/nso.cpp
index c80f2a100..3ccbbb824 100644
--- a/src/core/loader/nso.cpp
+++ b/src/core/loader/nso.cpp
@@ -5,6 +5,7 @@
5#include <vector> 5#include <vector>
6#include <lz4.h> 6#include <lz4.h>
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"
@@ -46,6 +47,9 @@ struct ModHeader {
46}; 47};
47static_assert(sizeof(ModHeader) == 0x1c, "ModHeader has incorrect size."); 48static_assert(sizeof(ModHeader) == 0x1c, "ModHeader has incorrect size.");
48 49
50AppLoader_NSO::AppLoader_NSO(FileUtil::IOFile&& file, std::string filepath)
51 : AppLoader(std::move(file)), filepath(std::move(filepath)) {}
52
49FileType AppLoader_NSO::IdentifyType(FileUtil::IOFile& file, const std::string&) { 53FileType AppLoader_NSO::IdentifyType(FileUtil::IOFile& file, const std::string&) {
50 u32 magic = 0; 54 u32 magic = 0;
51 file.Seek(0, SEEK_SET); 55 file.Seek(0, SEEK_SET);