From 77407f54fb690aa10e4d8907a44a844477174a8e Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sat, 12 Oct 2024 01:46:45 -0400 Subject: [PATCH] Only initialize for 3DS --- NDecrypt/Program.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/NDecrypt/Program.cs b/NDecrypt/Program.cs index 65733cf..335807a 100644 --- a/NDecrypt/Program.cs +++ b/NDecrypt/Program.cs @@ -107,9 +107,6 @@ namespace NDecrypt decryptArgs.Development = false; } - // Initialize the constants, if possible - decryptArgs.Initialize(); - for (int i = start; i < args.Length; i++) { if (File.Exists(args[i])) @@ -213,9 +210,11 @@ More than one path can be specified at a time."); return new DSTool(); case FileType.N3DS: Console.WriteLine("File recognized as Nintendo 3DS"); + decryptArgs.Initialize(); return new ThreeDSTool(decryptArgs); case FileType.N3DSCIA: Console.WriteLine("File recognized as Nintendo 3DS CIA [CAUTION: NOT WORKING CURRENTLY]"); + decryptArgs.Initialize(); return new CIATool(decryptArgs); case FileType.NULL: default: