From 1c338f117620f7c5ec5432df201ba2d39ea86298 Mon Sep 17 00:00:00 2001 From: jakcron Date: Sun, 14 Oct 2018 11:45:23 +0800 Subject: [PATCH] [hac] Add delta.h --- lib/libhac/include/nn/hac/delta.h | 26 ++++++++++++++++++++++++++ lib/libhac/libhac.vcxproj | 2 +- lib/libhac/libhac.vcxproj.filters | 2 +- 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 lib/libhac/include/nn/hac/delta.h diff --git a/lib/libhac/include/nn/hac/delta.h b/lib/libhac/include/nn/hac/delta.h new file mode 100644 index 0000000..0b17d08 --- /dev/null +++ b/lib/libhac/include/nn/hac/delta.h @@ -0,0 +1,26 @@ +#pragma once +#include +#include + +namespace nn +{ +namespace hac +{ + namespace delta + { + static const uint32_t kDeltaStructMagic = _MAKE_STRUCT_MAGIC_U32("NDV0"); + } +#pragma pack(push,1) + struct sDeltaHeader + { + le_uint32_t st_magic; + byte_t reserved_00[4]; + le_uint64_t source_size; + le_uint64_t destination_size; + le_uint64_t header_size; + le_uint64_t body_size; + byte_t reserved_01[0x18]; + }; +#pragma pack(pop) +} +} diff --git a/lib/libhac/libhac.vcxproj b/lib/libhac/libhac.vcxproj index fae1a0e..7b457ae 100644 --- a/lib/libhac/libhac.vcxproj +++ b/lib/libhac/libhac.vcxproj @@ -30,7 +30,7 @@ - + diff --git a/lib/libhac/libhac.vcxproj.filters b/lib/libhac/libhac.vcxproj.filters index 79469bc..fcc95c3 100644 --- a/lib/libhac/libhac.vcxproj.filters +++ b/lib/libhac/libhac.vcxproj.filters @@ -42,7 +42,7 @@ Header Files - + Header Files