core: Add dump RomFS support

This is added to LayeredFS, then the NCCH container and then the loader interface.
This commit is contained in:
zhupengfei
2020-02-09 20:59:31 +08:00
parent db18f6c79a
commit 13e2d534e9
7 changed files with 131 additions and 7 deletions

View File

@@ -247,7 +247,15 @@ public:
* @param size The size of the romfs
* @return ResultStatus result of function
*/
Loader::ResultStatus ReadRomFS(std::shared_ptr<RomFSReader>& romfs_file);
Loader::ResultStatus ReadRomFS(std::shared_ptr<RomFSReader>& romfs_file,
bool use_layered_fs = true);
/**
* Dump the RomFS of the NCCH container to the user folder.
* @param target_path target path to dump to
* @return ResultStatus result of function.
*/
Loader::ResultStatus DumpRomFS(const std::string& target_path);
/**
* Get the override RomFS of the NCCH container