diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/loader/nro.cpp | 3 | ||||
| -rw-r--r-- | src/core/loader/nro.h | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/core/loader/nro.cpp b/src/core/loader/nro.cpp index f6f12c31c..7d3ec2a76 100644 --- a/src/core/loader/nro.cpp +++ b/src/core/loader/nro.cpp | |||
| @@ -6,6 +6,7 @@ | |||
| 6 | #include <vector> | 6 | #include <vector> |
| 7 | 7 | ||
| 8 | #include "common/common_funcs.h" | 8 | #include "common/common_funcs.h" |
| 9 | #include "common/common_types.h" | ||
| 9 | #include "common/file_util.h" | 10 | #include "common/file_util.h" |
| 10 | #include "common/logging/log.h" | 11 | #include "common/logging/log.h" |
| 11 | #include "common/swap.h" | 12 | #include "common/swap.h" |
| @@ -106,6 +107,8 @@ AppLoader_NRO::AppLoader_NRO(FileSys::VirtualFile file) : AppLoader(file) { | |||
| 106 | } | 107 | } |
| 107 | } | 108 | } |
| 108 | 109 | ||
| 110 | AppLoader_NRO::~AppLoader_NRO() = default; | ||
| 111 | |||
| 109 | FileType AppLoader_NRO::IdentifyType(const FileSys::VirtualFile& file) { | 112 | FileType AppLoader_NRO::IdentifyType(const FileSys::VirtualFile& file) { |
| 110 | // Read NSO header | 113 | // Read NSO header |
| 111 | NroHeader nro_header{}; | 114 | NroHeader nro_header{}; |
diff --git a/src/core/loader/nro.h b/src/core/loader/nro.h index fe6104754..04a0f497e 100644 --- a/src/core/loader/nro.h +++ b/src/core/loader/nro.h | |||
| @@ -6,17 +6,21 @@ | |||
| 6 | 6 | ||
| 7 | #include <string> | 7 | #include <string> |
| 8 | #include "common/common_types.h" | 8 | #include "common/common_types.h" |
| 9 | #include "core/file_sys/control_metadata.h" | ||
| 10 | #include "core/hle/kernel/kernel.h" | 9 | #include "core/hle/kernel/kernel.h" |
| 11 | #include "core/loader/linker.h" | 10 | #include "core/loader/linker.h" |
| 12 | #include "core/loader/loader.h" | 11 | #include "core/loader/loader.h" |
| 13 | 12 | ||
| 13 | namespace FileSys { | ||
| 14 | class NACP; | ||
| 15 | } | ||
| 16 | |||
| 14 | namespace Loader { | 17 | namespace Loader { |
| 15 | 18 | ||
| 16 | /// Loads an NRO file | 19 | /// Loads an NRO file |
| 17 | class AppLoader_NRO final : public AppLoader, Linker { | 20 | class AppLoader_NRO final : public AppLoader, Linker { |
| 18 | public: | 21 | public: |
| 19 | explicit AppLoader_NRO(FileSys::VirtualFile file); | 22 | explicit AppLoader_NRO(FileSys::VirtualFile file); |
| 23 | ~AppLoader_NRO() override; | ||
| 20 | 24 | ||
| 21 | /** | 25 | /** |
| 22 | * Returns the type of the file | 26 | * Returns the type of the file |