Parse RomFS files in RomFS parser

This commit is contained in:
offtkp 2023-07-29 18:25:31 +03:00
parent fb6ec3aa5f
commit 85bbd713b0
2 changed files with 70 additions and 17 deletions

View file

@ -10,8 +10,9 @@ namespace RomFS {
struct RomFSNode {
std::u16string name;
// The file/directory offset relative to the start of the RomFS
u64 offset = 0;
u64 size = 0;
u64 metadataOffset = 0;
u64 dataOffset = 0;
u64 dataSize = 0;
bool isDirectory = false;
std::vector<std::unique_ptr<RomFSNode>> directories;