From 0f110cf7e85c45b6974800f70a6f1ffaedde5579 Mon Sep 17 00:00:00 2001 From: Ac_K Date: Fri, 14 Jun 2019 06:33:08 +0200 Subject: [PATCH] Update Nacp.cs Fix wrong field who is UserAccountSwitchLock @0x3026 according to https://switchbrew.org/wiki/NACP_Format --- src/LibHac/Nacp.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LibHac/Nacp.cs b/src/LibHac/Nacp.cs index 6c6f1f93..96ddec9b 100644 --- a/src/LibHac/Nacp.cs +++ b/src/LibHac/Nacp.cs @@ -8,7 +8,7 @@ namespace LibHac public NacpDescription[] Descriptions { get; } = new NacpDescription[0x10]; public string Isbn { get; } public byte StartupUserAccount { get; } - public byte TouchScreenUsageMode { get; } + public byte UserAccountSwitchLock { get; } public byte AocRegistrationType { get; } public int AttributeFlag { get; } public uint SupportedLanguageFlag { get; } @@ -74,7 +74,7 @@ namespace LibHac Isbn = reader.ReadUtf8Z(37); reader.BaseStream.Position = start + 0x3025; StartupUserAccount = reader.ReadByte(); - TouchScreenUsageMode = reader.ReadByte(); + UserAccountSwitchLock = reader.ReadByte(); AocRegistrationType = reader.ReadByte(); AttributeFlag = reader.ReadInt32(); SupportedLanguageFlag = reader.ReadUInt32();