mirror of
https://github.com/jakcron/nstool.git
synced 2024-12-22 10:45:28 +00:00
[nx] Fix mistake in sRomfsDirEntry and add romfs::kInvalidAddr
This commit is contained in:
parent
b164299473
commit
7e81d04fac
|
@ -19,6 +19,7 @@ namespace nx
|
|||
};
|
||||
|
||||
static const uint64_t kRomfsHeaderAlign = 0x200;
|
||||
static const uint32_t kInvalidAddr = 0xffffffff;
|
||||
}
|
||||
|
||||
#pragma pack(push,1)
|
||||
|
@ -35,12 +36,13 @@ namespace nx
|
|||
|
||||
struct sRomfsDirEntry
|
||||
{
|
||||
le_uint32_t parent;
|
||||
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[];
|
||||
char name[];
|
||||
};
|
||||
|
||||
struct sRomfsFileEntry
|
||||
|
@ -51,7 +53,7 @@ namespace nx
|
|||
le_uint64_t size;
|
||||
le_uint32_t hash;
|
||||
le_uint32_t name_size;
|
||||
le_uint16_t name[];
|
||||
char name[];
|
||||
};
|
||||
#pragma pack(pop)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue