diff --git a/BurnOutSharp.Wrappers/CFB.cs b/BurnOutSharp.Wrappers/CFB.cs index aa99f703..c6646e8c 100644 --- a/BurnOutSharp.Wrappers/CFB.cs +++ b/BurnOutSharp.Wrappers/CFB.cs @@ -188,7 +188,7 @@ namespace BurnOutSharp.Wrappers Console.WriteLine($" Byte order: {ByteOrder}"); Console.WriteLine($" Sector shift: {SectorShift} [{(long)Math.Pow(2, SectorShift)}]"); Console.WriteLine($" Mini sector shift: {MiniSectorShift} [{(long)Math.Pow(2, MiniSectorShift)}]"); - Console.WriteLine($" Reserved: {BitConverter.ToString(Reserved).Replace('-', ' ')}]"); + Console.WriteLine($" Reserved: {BitConverter.ToString(Reserved).Replace('-', ' ')}"); Console.WriteLine($" Number of directory sectors: {NumberOfDirectorySectors}"); Console.WriteLine($" Number of FAT sectors: {NumberOfFATSectors}"); Console.WriteLine($" First directory sector location: {FirstDirectorySectorLocation}"); @@ -201,7 +201,7 @@ namespace BurnOutSharp.Wrappers Console.WriteLine($" DIFAT:"); for (int i = 0; i < DIFAT.Length; i++) { - Console.WriteLine($" DIFAT Entry {i}: {DIFAT[i]}"); + Console.WriteLine($" DIFAT Entry {i}: {DIFAT[i]}"); } Console.WriteLine(); } diff --git a/Test/Printer.cs b/Test/Printer.cs index a9c6059e..bbf58165 100644 --- a/Test/Printer.cs +++ b/Test/Printer.cs @@ -257,6 +257,25 @@ namespace Test cabinet.Print(); } + // MSI -- TODO: Technically CFB + else if (ft == SupportedFileType.MSI) + { + // Build the CFB information + Console.WriteLine("Creating Compact File Binary deserializer"); + Console.WriteLine(); + + var cfb = CFB.Create(stream); + if (cfb == null) + { + Console.WriteLine("Something went wrong parsing Compact File Binary"); + Console.WriteLine(); + return; + } + + // Print the CFB to screen + cfb.Print(); + } + // N3DS else if (ft == SupportedFileType.N3DS) {