2018-06-10 15:48:04 +00:00
|
|
|
#pragma once
|
|
|
|
#include <fnd/types.h>
|
2018-08-07 07:17:51 +00:00
|
|
|
#include <nn/hac/macro.h>
|
|
|
|
|
|
|
|
namespace nn
|
|
|
|
{
|
|
|
|
namespace hac
|
2018-06-10 15:48:04 +00:00
|
|
|
{
|
|
|
|
namespace aset
|
|
|
|
{
|
2018-06-29 07:10:10 +00:00
|
|
|
static const uint32_t kAssetStructMagic = _MAKE_STRUCT_MAGIC_U32("ASET");
|
2018-06-10 15:48:04 +00:00
|
|
|
|
|
|
|
static const uint32_t kDefaultAssetFormatVersion = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#pragma pack(push,1)
|
|
|
|
struct sAssetSection
|
|
|
|
{
|
|
|
|
le_uint64_t offset;
|
|
|
|
le_uint64_t size;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct sAssetHeader
|
|
|
|
{
|
2018-06-26 04:23:40 +00:00
|
|
|
le_uint32_t st_magic;
|
2018-06-10 15:48:04 +00:00
|
|
|
le_uint32_t format_version;
|
|
|
|
sAssetSection icon;
|
|
|
|
sAssetSection nacp;
|
|
|
|
sAssetSection romfs;
|
|
|
|
};
|
|
|
|
#pragma pack(pop)
|
2018-08-07 07:17:51 +00:00
|
|
|
}
|
2018-06-10 15:48:04 +00:00
|
|
|
}
|