diff --git a/lib/libnx/include/nx/romfs.h b/lib/libnx/include/nx/romfs.h index ab34c01..ed75974 100644 --- a/lib/libnx/include/nx/romfs.h +++ b/lib/libnx/include/nx/romfs.h @@ -15,7 +15,6 @@ namespace nx DIR_NODE_TABLE, FILE_HASHMAP_TABLE, FILE_NODE_TABLE, - SECTION_NUM }; } @@ -31,5 +30,26 @@ namespace nx } sections[romfs::SECTION_NUM]; 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) }