mirror of
https://github.com/jakcron/nstool
synced 2024-11-15 02:06:40 +00:00
[nx] Fix mistake in sRomfsDirEntry and add romfs::kInvalidAddr
This commit is contained in:
parent
b164299473
commit
7e81d04fac
1 changed files with 4 additions and 2 deletions
|
@ -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