mirror of
https://github.com/jakcron/nstool
synced 2024-11-15 02:06:40 +00:00
[nx] Add other RomFs structures
This commit is contained in:
parent
27347214f7
commit
12e535317a
1 changed files with 21 additions and 1 deletions
|
@ -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