public BMG(byte[] file) { EndianBinaryReader er = new EndianBinaryReader((Stream) new MemoryStream(file), Endianness.LittleEndian); bool OK; this.Header = new BMG.BMGHeader(er, "MESGbmg1", out OK); if (!OK) { int num1 = (int)MessageBox.Show("Error 1"); } else { this.INF1 = new BMG.INF1Section(er, out OK); if (!OK) { int num2 = (int)MessageBox.Show("Error 2"); } else { this.DAT1 = new BMG.DAT1Section(er, this.INF1, out OK); if (!OK) { int num3 = (int)MessageBox.Show("Error 3"); } } } er.ClearMarkers(); er.Close(); }
public NSBVA(byte[] file) { EndianBinaryReader er = new EndianBinaryReader((Stream) new MemoryStream(file), Endianness.LittleEndian); bool OK; this.Header = new FileHeader(er, "BVA0", out OK); if (!OK) { int num1 = (int)MessageBox.Show("Error 0"); } else { this.visAnmSet = new NSBVA.VisAnmSet(er, out OK); if (!OK) { int num2 = (int)MessageBox.Show("Error 1"); } } er.ClearMarkers(); er.Close(); }
public NSBTX(byte[] file) { EndianBinaryReader er = new EndianBinaryReader((Stream) new MemoryStream(file), Endianness.LittleEndian); bool OK; this.Header = new FileHeader(er, "BTX0", out OK); if (!OK) { int num1 = (int)MessageBox.Show("Error 0"); } else { er.SetMarkerOnCurrentOffset("TexplttSet"); this.TexPlttSet = new NSBTX.TexplttSet(er, out OK); if (!OK) { int num2 = (int)MessageBox.Show("Error 1"); } } er.ClearMarkers(); er.Close(); }
public SDAT(byte[] file) { EndianBinaryReader er = new EndianBinaryReader((Stream) new MemoryStream(file), Endianness.LittleEndian); er.ClearMarkers(); bool OK; this.Header = new FileHeader.HeaderInfo(er, nameof(SDAT), out OK); if (!OK) { int num1 = (int)MessageBox.Show("Error 1"); } else { this.nSymbOffset = er.ReadUInt32(); this.nSymbSize = er.ReadUInt32(); this.nInfoOffset = er.ReadUInt32(); this.nInfoSize = er.ReadUInt32(); this.nFatOffset = er.ReadUInt32(); this.nFatSize = er.ReadUInt32(); this.nFileOffset = er.ReadUInt32(); this.nFileSize = er.ReadUInt32(); er.ReadBytes(16); er.BaseStream.Position = (long)this.nSymbOffset; if (this.nSymbSize != 0U) { this.SYMB = new SDAT.SymbolBlock(er, out OK); if (!OK) { int num2 = (int)MessageBox.Show("Error 2"); goto label_11; } } er.BaseStream.Position = (long)this.nInfoOffset; this.INFO = new SDAT.InfoBlock(er, out OK); if (!OK) { int num3 = (int)MessageBox.Show("Error 3"); } else { er.BaseStream.Position = (long)this.nFatOffset; this.FAT = new SDAT.FatBlock(er, out OK); if (!OK) { int num2 = (int)MessageBox.Show("Error 4"); } else { er.BaseStream.Position = (long)this.nFileOffset; this.FILE = new SDAT.FileBlock(er, out OK); if (!OK) { int num4 = (int)MessageBox.Show("Error 5"); } } } } label_11: er.ClearMarkers(); er.Close(); }