protected override void PrepareRomIfNecessary(bool directDownload) { if (!Alphaleonis.Win32.Filesystem.File.Exists(this.GetRom())) { this.method_9(directDownload); using (BinaryReader binaryReader = new BinaryReader((Stream)Alphaleonis.Win32.Filesystem.File.Open(this.method_10(), FileMode.Open))) { using (FileStream fileStream = Alphaleonis.Win32.Filesystem.File.Create(this.GetRom())) { GClass95.smethod_0(binaryReader.BaseStream, this._nesTag); binaryReader.BaseStream.Seek(-18L, SeekOrigin.Current); byte[] buffer1 = new byte[2]; binaryReader.Read(buffer1, 0, 2); Array.Reverse((Array)buffer1); long length = (long)((int)BitConverter.ToUInt16(buffer1, 0) * 256 + 12); binaryReader.BaseStream.Seek(20L, SeekOrigin.Current); fileStream.Write(new byte[4] { (byte)78, (byte)69, (byte)83, (byte)26 }, 0, 4); byte[] buffer2 = new byte[length]; binaryReader.Read(buffer2, 0, buffer2.Length); fileStream.Write(buffer2, 0, buffer2.Length); } } } this.method_12(true); }
public override DataSize GetDlcSize() { return(GClass95.smethod_1(this.DlcPath)); }
public override DataSize GetUpdateSize() { return(GClass95.smethod_1(this.UpdatePath)); }