mirror of
https://github.com/jakcron/nstool.git
synced 2024-12-22 18:55:29 +00:00
[nx] Add other RomFs structures
This commit is contained in:
parent
27347214f7
commit
12e535317a
|
@ -15,7 +15,6 @@ namespace nx
|
||||||
DIR_NODE_TABLE,
|
DIR_NODE_TABLE,
|
||||||
FILE_HASHMAP_TABLE,
|
FILE_HASHMAP_TABLE,
|
||||||
FILE_NODE_TABLE,
|
FILE_NODE_TABLE,
|
||||||
|
|
||||||
SECTION_NUM
|
SECTION_NUM
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -31,5 +30,26 @@ namespace nx
|
||||||
} sections[romfs::SECTION_NUM];
|
} sections[romfs::SECTION_NUM];
|
||||||
le_uint64_t data_offset;
|
le_uint64_t data_offset;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct sRomfsDirEntry
|
||||||
|
{
|
||||||
|
le_uint32_t sibling;
|
||||||
|
le_uint32_t child;
|
||||||
|
le_uint32_t file;
|
||||||
|
le_uint32_t hash;
|
||||||
|
le_uint32_t name_size;
|
||||||
|
le_uint16_t name[];
|
||||||
|
};
|
||||||
|
|
||||||
|
struct sRomfsFileEntry
|
||||||
|
{
|
||||||
|
le_uint32_t parent;
|
||||||
|
le_uint32_t sibling;
|
||||||
|
le_uint64_t offset;
|
||||||
|
le_uint64_t size;
|
||||||
|
le_uint32_t hash;
|
||||||
|
le_uint32_t name_size;
|
||||||
|
le_uint16_t name[];
|
||||||
|
};
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue