3
0
Fork 0
forked from suyu/suyu

nro: Replace inclusion with a forward declaration

It's sufficient to use a forward declaration instead of a direct
inclusion here.
This commit is contained in:
Lioncash 2018-07-23 17:27:50 -04:00
parent 2b497e5830
commit 1b4d0ac20e
2 changed files with 8 additions and 1 deletions

View file

@ -6,6 +6,7 @@
#include <vector>
#include "common/common_funcs.h"
#include "common/common_types.h"
#include "common/file_util.h"
#include "common/logging/log.h"
#include "common/swap.h"
@ -106,6 +107,8 @@ AppLoader_NRO::AppLoader_NRO(FileSys::VirtualFile file) : AppLoader(file) {
}
}
AppLoader_NRO::~AppLoader_NRO() = default;
FileType AppLoader_NRO::IdentifyType(const FileSys::VirtualFile& file) {
// Read NSO header
NroHeader nro_header{};

View file

@ -6,17 +6,21 @@
#include <string>
#include "common/common_types.h"
#include "core/file_sys/control_metadata.h"
#include "core/hle/kernel/kernel.h"
#include "core/loader/linker.h"
#include "core/loader/loader.h"
namespace FileSys {
class NACP;
}
namespace Loader {
/// Loads an NRO file
class AppLoader_NRO final : public AppLoader, Linker {
public:
explicit AppLoader_NRO(FileSys::VirtualFile file);
~AppLoader_NRO() override;
/**
* Returns the type of the file