From a8b13e60b62ed05e4e9a9f4e7b7950381b1f7af8 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sat, 7 Jan 2023 20:55:17 -0800 Subject: [PATCH] Fix printing if-statements --- Test/Printer.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Test/Printer.cs b/Test/Printer.cs index c7f1d033..b281233c 100644 --- a/Test/Printer.cs +++ b/Test/Printer.cs @@ -51,7 +51,10 @@ namespace Test // Get the file type SupportedFileType ft = BurnOutSharp.Tools.Utilities.GetFileType(magic); if (ft == SupportedFileType.UNKNOWN) - ft = BurnOutSharp.Tools.Utilities.GetFileType(Path.GetExtension(file).TrimStart('.')); + { + string extension = Path.GetExtension(file).TrimStart('.'); + ft = BurnOutSharp.Tools.Utilities.GetFileType(extension); + } // MS-DOS executable and decendents if (ft == SupportedFileType.Executable) @@ -236,7 +239,7 @@ namespace Test } // N3DS - else if (ft == SupportedFileType.NCF) + else if (ft == SupportedFileType.N3DS) { // Build the N3DS information Console.WriteLine("Creating Nintendo 3DS deserializer"); @@ -274,7 +277,7 @@ namespace Test } // Nitro - else if (ft == SupportedFileType.NCF) + else if (ft == SupportedFileType.Nitro) { // Build the NCF information Console.WriteLine("Creating Nintendo DS/DSi deserializer");