Add DS/3DS to Test printer

This commit is contained in:
Matt Nadareski
2023-01-07 14:50:21 -08:00
parent af0623beea
commit 4c0c44de6b
2 changed files with 41 additions and 0 deletions

View File

@@ -715,6 +715,9 @@ namespace BurnOutSharp.Tools
case SupportedFileType.MicrosoftLZ: return new FileType.MicrosoftLZ();
case SupportedFileType.MPQ: return new FileType.MPQ();
case SupportedFileType.MSI: return new FileType.MSI();
//case SupportedFileType.N3DS: return new FileType.N3DS();
//case SupportedFileType.NCF: return new FileType.NCF();
//case SupportedFileType.Nitro: return new FileType.Nitro();
case SupportedFileType.PAK: return new FileType.PAK();
case SupportedFileType.PKZIP: return new FileType.PKZIP();
case SupportedFileType.PLJ: return new FileType.PLJ();

View File

@@ -235,6 +235,25 @@ namespace Test
cabinet.Print();
}
// N3DS
else if (ft == SupportedFileType.NCF)
{
// Build the N3DS information
Console.WriteLine("Creating Nintendo 3DS deserializer");
Console.WriteLine();
var n3ds = N3DS.Create(stream);
if (n3ds == null)
{
Console.WriteLine("Something went wrong parsing Nintendo 3DS");
Console.WriteLine();
return;
}
// Print the N3DS info to screen
n3ds.Print();
}
// NCF
else if (ft == SupportedFileType.NCF)
{
@@ -254,6 +273,25 @@ namespace Test
ncf.Print();
}
// Nitro
else if (ft == SupportedFileType.NCF)
{
// Build the NCF information
Console.WriteLine("Creating Nintendo DS/DSi deserializer");
Console.WriteLine();
var nitro = Nitro.Create(stream);
if (nitro == null)
{
Console.WriteLine("Something went wrong parsing Nintendo DS/DSi");
Console.WriteLine();
return;
}
// Print the Nitro info to screen
nitro.Print();
}
// PAK
else if (ft == SupportedFileType.PAK)
{