Attempt to add RomFS dumping

This commit is contained in:
wheremyfoodat 2023-10-07 21:23:05 +03:00
parent f9dc9ac94d
commit abe4675477
10 changed files with 180 additions and 8 deletions

View file

@ -18,5 +18,12 @@ namespace RomFS {
std::vector<std::unique_ptr<RomFSNode>> files;
};
// Result codes when dumping RomFS. These are used by the frontend to print appropriate error messages if RomFS dumping fails
enum class DumpingResult {
Success = 0,
InvalidFormat = 1, // ROM is a format that doesn't support RomFS, such as ELF
NoRomFS = 2
};
std::unique_ptr<RomFSNode> parseRomFSTree(uintptr_t romFS, u64 romFSSize);
} // namespace RomFS