mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-07-20 15:55:15 +00:00
Add DS/3DS to Test printer
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user