Update Nacp.cs

Fix wrong field who is UserAccountSwitchLock @0x3026 according to https://switchbrew.org/wiki/NACP_Format
This commit is contained in:
Ac_K 2019-06-14 06:33:08 +02:00 committed by Alex Barney
parent b361567977
commit 0f110cf7e8

View file

@ -8,7 +8,7 @@ namespace LibHac
public NacpDescription[] Descriptions { get; } = new NacpDescription[0x10]; public NacpDescription[] Descriptions { get; } = new NacpDescription[0x10];
public string Isbn { get; } public string Isbn { get; }
public byte StartupUserAccount { get; } public byte StartupUserAccount { get; }
public byte TouchScreenUsageMode { get; } public byte UserAccountSwitchLock { get; }
public byte AocRegistrationType { get; } public byte AocRegistrationType { get; }
public int AttributeFlag { get; } public int AttributeFlag { get; }
public uint SupportedLanguageFlag { get; } public uint SupportedLanguageFlag { get; }
@ -74,7 +74,7 @@ namespace LibHac
Isbn = reader.ReadUtf8Z(37); Isbn = reader.ReadUtf8Z(37);
reader.BaseStream.Position = start + 0x3025; reader.BaseStream.Position = start + 0x3025;
StartupUserAccount = reader.ReadByte(); StartupUserAccount = reader.ReadByte();
TouchScreenUsageMode = reader.ReadByte(); UserAccountSwitchLock = reader.ReadByte();
AocRegistrationType = reader.ReadByte(); AocRegistrationType = reader.ReadByte();
AttributeFlag = reader.ReadInt32(); AttributeFlag = reader.ReadInt32();
SupportedLanguageFlag = reader.ReadUInt32(); SupportedLanguageFlag = reader.ReadUInt32();