From 7e81d04fac42928c2d27615e480e45622e83cdde Mon Sep 17 00:00:00 2001 From: jakcron Date: Wed, 25 Apr 2018 19:34:40 +0800 Subject: [PATCH] [nx] Fix mistake in sRomfsDirEntry and add romfs::kInvalidAddr --- lib/libnx/include/nx/romfs.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/libnx/include/nx/romfs.h b/lib/libnx/include/nx/romfs.h index c678886..21e2aeb 100644 --- a/lib/libnx/include/nx/romfs.h +++ b/lib/libnx/include/nx/romfs.h @@ -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) }