diff options
| author | Zach Hilman <zachhilman@gmail.com> | 2018-08-05 18:27:05 -0400 |
|---|---|---|
| committer | Zach Hilman <zachhilman@gmail.com> | 2018-08-05 18:28:15 -0400 |
| commit | 7f9430f7aee9e7ef11d1bd86a2b98ae239c5be06 (patch) | |
| tree | 340579d4ed7768dc4866102916fc449b6e601164 /src/core/loader/deconstructed_rom_directory.h | |
| parent | c8e5c740924896810897b3f9090858f307fd313a (diff) | |
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.
Diffstat (limited to 'src/core/loader/deconstructed_rom_directory.h')
| -rw-r--r-- | src/core/loader/deconstructed_rom_directory.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/loader/deconstructed_rom_directory.h b/src/core/loader/deconstructed_rom_directory.h index 7319ba6ea..7d5433563 100644 --- a/src/core/loader/deconstructed_rom_directory.h +++ b/src/core/loader/deconstructed_rom_directory.h @@ -22,6 +22,9 @@ class AppLoader_DeconstructedRomDirectory final : public AppLoader { public: explicit AppLoader_DeconstructedRomDirectory(FileSys::VirtualFile main_file); + // Overload to accept exefs directory. Must contain 'main' and 'main.npdm' + explicit AppLoader_DeconstructedRomDirectory(FileSys::VirtualDir directory); + /** * Returns the type of the file * @param file std::shared_ptr<VfsFile> open file @@ -40,6 +43,7 @@ public: private: FileSys::ProgramMetadata metadata; FileSys::VirtualFile romfs; + FileSys::VirtualDir dir; }; } // namespace Loader |
