Skip to content

Commit

Permalink
Wording change
Browse files Browse the repository at this point in the history
  • Loading branch information
mnadareski committed Nov 14, 2024
1 parent edd8ebc commit 15961e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions NDecrypt.Core/ThreeDSTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ private void DecryptExeFSFileEntries(N3DS cart, int index, Stream input, Stream
var exeFsHeader = cart.ExeFSHeaders[index];
if (exeFsHeader?.FileHeaders == null)
{
Console.WriteLine($"Partition {index} ExeFS header could not be read. Skipping...");
Console.WriteLine($"Partition {index} ExeFS header does not exist. Skipping...");
return;
}

Expand Down Expand Up @@ -628,7 +628,7 @@ private bool EncryptExeFS(N3DS cart, int index, Stream input, Stream output)
var exefsHeader = cart.ExeFSHeaders[index];
if (exefsHeader == null)
{
Console.WriteLine($"Partition {index} ExeFS header could not be read. Skipping...");
Console.WriteLine($"Partition {index} ExeFS header does not exist. Skipping...");
return false;
}

Expand Down Expand Up @@ -719,12 +719,12 @@ private void EncryptExeFSFileEntries(N3DS cart, int index, Stream input, Stream

// Get to the start of the files
uint exeFsFilesOffset = exeFsHeaderOffset + cart.MediaUnitSize;
var exeFsHeader = cart.ExeFSHeaders?[index];

// If the header failed to read, log and return
var exeFsHeader = cart.ExeFSHeaders?[index];
if (exeFsHeader?.FileHeaders == null)
{
Console.WriteLine($"Partition {index} ExeFS header could not be read. Skipping...");
Console.WriteLine($"Partition {index} ExeFS header does not exist. Skipping...");
return;
}

Expand Down

0 comments on commit 15961e7

Please sign in to comment.