diff options
| author | bunnei <bunneidev@gmail.com> | 2018-08-06 22:02:41 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-06 22:02:41 -0400 |
| commit | 826b1394e85720b62938c5f7af4a876e203316af (patch) | |
| tree | 2660cb536c62d253419965f727e996b87c8a21f5 /src/core/loader/deconstructed_rom_directory.h | |
| parent | 0c3c91e41c9b88f01586da6ccbf7e231f7815d73 (diff) | |
| parent | 7f9430f7aee9e7ef11d1bd86a2b98ae239c5be06 (diff) | |
Merge pull request #931 from DarkLordZach/nca-as-drd
loader: Make AppLoader_NCA rely on directory loading code
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 |
