[nx] Add other RomFs structures

This commit is contained in:
jakcron 2018-04-25 14:28:43 +08:00
parent 27347214f7
commit 12e535317a

View file

@ -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)
} }