Reduce enum overhead in metadata

This commit is contained in:
Matt Nadareski
2026-03-26 22:51:14 -04:00
parent 29620c0c4f
commit 8de1fbc52f
38 changed files with 2022 additions and 2370 deletions

View File

@@ -212,7 +212,7 @@ namespace SabreTools.Wrappers
{
// Determine the keys needed for this partition
N3DSPartitionKeys? keys = GetDecryptionKeys(index, settings);
if (keys == null)
if (keys is null)
{
Console.WriteLine($"Partition {index} could not generate keys. Skipping...");
return;
@@ -637,7 +637,7 @@ namespace SabreTools.Wrappers
{
// Determine the keys needed for this partition
N3DSPartitionKeys? keys = GetEncryptionKeys(index, settings);
if (keys == null)
if (keys is null)
{
Console.WriteLine($"Partition {index} could not generate keys. Skipping...");
return;