nstool/lib/libhac/include/nn/hac/hierarchicalintegrity.h

35 lines
688 B
C
Raw Permalink Normal View History

#pragma once
#include <fnd/types.h>
2018-08-07 07:17:51 +00:00
#include <nn/hac/macro.h>
2018-08-07 07:17:51 +00:00
namespace nn
{
namespace hac
{
namespace hierarchicalintegrity
{
static const uint32_t kStructMagic = _MAKE_STRUCT_MAGIC_U32("IVFC");
static const uint32_t kRomfsTypeId = 0x20000;
static const size_t kDefaultLayerNum = 6;
static const size_t kHeaderAlignLen = 0x20;
}
#pragma pack(push,1)
struct sHierarchicalIntegrityHeader
{
le_uint32_t st_magic;
le_uint32_t type_id;
le_uint32_t master_hash_size;
le_uint32_t layer_num;
};
struct sHierarchicalIntegrityLayerInfo // sizeof(0x18)
{
le_uint64_t offset;
le_uint64_t size;
le_uint32_t block_size;
byte_t reserved[4];
};
#pragma pack(pop)
}
2018-08-07 07:17:51 +00:00
}