loader: Make AppLoader_NCA rely on directory loading code

Eliminates duplicate code shared between their Load methods, after all the only difference is how the romfs is handled.
This commit is contained in:
Zach Hilman 2018-08-05 18:27:05 -04:00
parent c8e5c74092
commit 7f9430f7ae
4 changed files with 24 additions and 37 deletions

View file

@ -10,6 +10,7 @@
#include "core/file_sys/program_metadata.h"
#include "core/hle/kernel/object.h"
#include "core/loader/loader.h"
#include "deconstructed_rom_directory.h"
namespace Loader {
@ -41,6 +42,7 @@ private:
FileSys::ProgramMetadata metadata;
std::unique_ptr<FileSys::NCA> nca;
std::unique_ptr<AppLoader_DeconstructedRomDirectory> directory_loader;
};
} // namespace Loader