NHSE/NHSE.Core/Save/Meta/FileHeaderInfo.cs
Kurt 6c40e1c769
Initial v1.7.0 Support (#445)
* Pre-patch preparations

* Update magic values

* Check formatting characters directly rather than string compare

"Brown".StartsWith("\u000e")
>true
what

let's be paranoid here, because .NET Core behaves differently from .NET framework.

* Update FileHashRevision.cs

Postbox with the massive decrease in size; likely the same mutation caused the other massive decreases.

* Dump item names

* Update flag definitions

* Update item info

* Add feathers to bug list

Might remove later.

* Update RecipeList.cs

* Update ItemRemakeUtil.cs

* Update stack details

* Update offsets

* Update MainSaveOffsets17.cs

* Update GameLists.cs
2021-01-27 20:04:51 -08:00

22 lines
797 B
C#

using System.Runtime.InteropServices;
// ReSharper disable NonReadonlyMemberInGetHashCode
namespace NHSE.Core
{
/// <summary>
/// Metadata stored in a file's Header, indicating the revision information.
/// </summary>
[StructLayout(LayoutKind.Explicit)]
public sealed record FileHeaderInfo
{
public const int SIZE = 0x40;
[field: FieldOffset(0x00)] public uint Major { get; init; }
[field: FieldOffset(0x04)] public uint Minor { get; init; }
[field: FieldOffset(0x08)] public ushort Unk1 { get; init; }
[field: FieldOffset(0x0A)] public ushort HeaderRevision { get; init; }
[field: FieldOffset(0x0C)] public ushort Unk2 { get; init; }
[field: FieldOffset(0x0E)] public ushort SaveRevision { get; init; }
}
}