diff --git a/LibHac/Keyset.cs b/LibHac/Keyset.cs index 499365c3..5720f397 100644 --- a/LibHac/Keyset.cs +++ b/LibHac/Keyset.cs @@ -122,7 +122,6 @@ namespace LibHac { private const int TitleKeySize = 0x10; private static readonly Dictionary CommonKeyDict; - private static readonly Dictionary UniqueKeyDict; private static readonly Dictionary AllKeyDict; static ExternalKeys() @@ -131,7 +130,6 @@ namespace LibHac var uniqueKeys = CreateUniqueKeyList(); CommonKeyDict = commonKeys.ToDictionary(k => k.Name, k => k); - UniqueKeyDict = uniqueKeys.ToDictionary(k => k.Name, k => k); AllKeyDict = uniqueKeys.Concat(commonKeys).ToDictionary(k => k.Name, k => k); } diff --git a/LibHac/Nacp.cs b/LibHac/Nacp.cs index 8c66cccb..f452d087 100644 --- a/LibHac/Nacp.cs +++ b/LibHac/Nacp.cs @@ -115,7 +115,10 @@ namespace LibHac SeedForPseudoDeviceId = reader.ReadUInt64(); BcatPassphrase = reader.ReadUtf8Z(65); - reader.BaseStream.Position = start + 0x3148; + reader.BaseStream.Position = start + 0x3141; + Reserved01 = reader.ReadByte(); + Reserved02 = reader.ReadBytes(6); + UserAccountSaveDataSizeMax = reader.ReadInt64(); UserAccountSaveDataJournalSizeMax = reader.ReadInt64(); DeviceSaveDataSizeMax = reader.ReadInt64(); diff --git a/NandReader/Program.cs b/NandReader/Program.cs index e5fc75a6..204dc04a 100644 --- a/NandReader/Program.cs +++ b/NandReader/Program.cs @@ -1,4 +1,5 @@ -using System; +// ReSharper disable UnusedVariable UnusedMember.Local +using System; using System.Collections.Generic; using System.IO; using LibHac; diff --git a/NandReaderGui/DeviceStream.cs b/NandReaderGui/DeviceStream.cs index aa7c685c..9b3c68c3 100644 --- a/NandReaderGui/DeviceStream.cs +++ b/NandReaderGui/DeviceStream.cs @@ -130,16 +130,10 @@ namespace NandReaderGui _handleValue = null; base.Close(); } + private bool _disposed; - private new void Dispose() - { - Dispose(true); - base.Dispose(); - GC.SuppressFinalize(this); - } - - private new void Dispose(bool disposing) + protected override void Dispose(bool disposing) { // Check to see if Dispose has already been called. if (!_disposed) @@ -156,7 +150,7 @@ namespace NandReaderGui } // Note disposing has been done. _disposed = true; - + base.Dispose(disposing); } } }