2017-05-19 20:28:49 +01:00
|
|
|
// /***************************************************************************
|
2016-07-28 18:13:49 +01:00
|
|
|
// The Disc Image Chef
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
//
|
|
|
|
|
// Filename : Apple2MG.cs
|
|
|
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
|
|
|
|
//
|
2017-12-19 03:50:57 +00:00
|
|
|
// Component : Disk image plugins.
|
2016-07-28 18:13:49 +01:00
|
|
|
//
|
|
|
|
|
// --[ Description ] ----------------------------------------------------------
|
|
|
|
|
//
|
2017-12-19 03:50:57 +00:00
|
|
|
// Manages XGS emulator disk images.
|
2016-07-28 18:13:49 +01:00
|
|
|
//
|
|
|
|
|
// --[ License ] --------------------------------------------------------------
|
|
|
|
|
//
|
|
|
|
|
// This library is free software; you can redistribute it and/or modify
|
|
|
|
|
// it under the terms of the GNU Lesser General Public License as
|
|
|
|
|
// published by the Free Software Foundation; either version 2.1 of the
|
|
|
|
|
// License, or (at your option) any later version.
|
|
|
|
|
//
|
|
|
|
|
// This library is distributed in the hope that it will be useful, but
|
|
|
|
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
// Lesser General Public License for more details.
|
|
|
|
|
//
|
|
|
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
//
|
|
|
|
|
// ----------------------------------------------------------------------------
|
2017-12-19 03:50:57 +00:00
|
|
|
// Copyright © 2011-2018 Natalia Portillo
|
2016-07-28 18:13:49 +01:00
|
|
|
// ****************************************************************************/
|
2015-04-19 03:50:31 +01:00
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2017-12-22 06:55:04 +00:00
|
|
|
using System.Diagnostics.CodeAnalysis;
|
2015-04-19 03:50:31 +01:00
|
|
|
using System.IO;
|
|
|
|
|
using System.Text;
|
2015-11-23 21:44:58 +00:00
|
|
|
using DiscImageChef.CommonTypes;
|
2017-12-19 19:33:46 +00:00
|
|
|
using DiscImageChef.Console;
|
2016-09-05 17:37:31 +01:00
|
|
|
using DiscImageChef.Filters;
|
2015-04-19 03:50:31 +01:00
|
|
|
|
2017-12-20 17:15:26 +00:00
|
|
|
namespace DiscImageChef.DiscImages
|
2015-04-19 03:50:31 +01:00
|
|
|
{
|
2017-12-20 17:15:26 +00:00
|
|
|
public class Apple2Mg : ImagePlugin
|
2015-04-19 03:50:31 +01:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
2017-12-24 00:12:31 +00:00
|
|
|
/// Magic number, "2IMG"
|
2015-04-19 03:50:31 +01:00
|
|
|
/// </summary>
|
2017-12-20 17:15:26 +00:00
|
|
|
const uint MAGIC = 0x474D4932;
|
2015-04-19 03:50:31 +01:00
|
|
|
/// <summary>
|
2017-12-24 00:12:31 +00:00
|
|
|
/// Disk image created by ASIMOV2, "!nfc"
|
2015-04-19 03:50:31 +01:00
|
|
|
/// </summary>
|
2017-12-20 17:15:26 +00:00
|
|
|
const uint CREATOR_ASIMOV = 0x63666E21;
|
2015-04-19 03:50:31 +01:00
|
|
|
/// <summary>
|
2017-12-24 00:12:31 +00:00
|
|
|
/// Disk image created by Bernie ][ the Rescue, "B2TR"
|
2015-04-19 03:50:31 +01:00
|
|
|
/// </summary>
|
2017-12-20 17:15:26 +00:00
|
|
|
const uint CREATOR_BERNIE = 0x52543242;
|
2015-04-19 03:50:31 +01:00
|
|
|
/// <summary>
|
2017-12-24 00:12:31 +00:00
|
|
|
/// Disk image created by Catakig, "CTKG"
|
2015-04-19 03:50:31 +01:00
|
|
|
/// </summary>
|
2017-12-20 17:15:26 +00:00
|
|
|
const uint CREATOR_CATAKIG = 0x474B5443;
|
2015-04-19 03:50:31 +01:00
|
|
|
/// <summary>
|
2017-12-24 00:12:31 +00:00
|
|
|
/// Disk image created by Sheppy's ImageMaker, "ShIm"
|
2015-04-19 03:50:31 +01:00
|
|
|
/// </summary>
|
2017-12-20 17:15:26 +00:00
|
|
|
const uint CREATOR_SHEPPY = 0x6D496853;
|
2015-04-19 03:50:31 +01:00
|
|
|
/// <summary>
|
2017-12-24 00:12:31 +00:00
|
|
|
/// Disk image created by Sweet16, "WOOF"
|
2015-04-19 03:50:31 +01:00
|
|
|
/// </summary>
|
2017-12-20 17:15:26 +00:00
|
|
|
const uint CREATOR_SWEET = 0x464F4F57;
|
2015-04-19 03:50:31 +01:00
|
|
|
/// <summary>
|
2017-12-24 00:12:31 +00:00
|
|
|
/// Disk image created by XGS, "XGS!"
|
2015-04-19 03:50:31 +01:00
|
|
|
/// </summary>
|
2017-12-20 17:15:26 +00:00
|
|
|
const uint CREATOR_XGS = 0x21534758;
|
2016-08-02 18:09:24 +01:00
|
|
|
/// <summary>
|
2017-12-24 00:12:31 +00:00
|
|
|
/// Disk image created by CiderPress, "CdrP"
|
2016-08-02 18:09:24 +01:00
|
|
|
/// </summary>
|
2017-12-20 17:15:26 +00:00
|
|
|
const uint CREATOR_CIDER = 0x50726443;
|
2015-04-19 03:50:31 +01:00
|
|
|
|
2017-12-20 17:15:26 +00:00
|
|
|
const uint DOS_SECTOR_ORDER = 0x00000000;
|
|
|
|
|
const uint PRODOS_SECTOR_ORDER = 0x00000001;
|
|
|
|
|
const uint NIB_SECTOR_ORDER = 0x00000002;
|
2015-04-19 03:50:31 +01:00
|
|
|
|
2017-12-20 17:15:26 +00:00
|
|
|
const uint LOCKED_DISK = 0x80000000;
|
|
|
|
|
const uint VALID_VOLUME_NUMBER = 0x00000100;
|
|
|
|
|
const uint VOLUME_NUMBER_MASK = 0x000000FF;
|
2017-12-24 00:12:31 +00:00
|
|
|
|
2017-12-20 17:15:26 +00:00
|
|
|
Filter a2MgImageFilter;
|
2017-12-24 00:12:31 +00:00
|
|
|
A2ImgHeader imageHeader;
|
2015-04-19 03:50:31 +01:00
|
|
|
|
2017-12-20 17:15:26 +00:00
|
|
|
public Apple2Mg()
|
2015-04-19 03:50:31 +01:00
|
|
|
{
|
|
|
|
|
Name = "Apple 2IMG";
|
2017-12-20 17:15:26 +00:00
|
|
|
PluginUuid = new Guid("CBAF8824-BA5F-415F-953A-19A03519B2D1");
|
2017-12-22 06:55:04 +00:00
|
|
|
ImageInfo = new ImageInfo
|
|
|
|
|
{
|
|
|
|
|
ReadableSectorTags = new List<SectorTagType>(),
|
|
|
|
|
ReadableMediaTags = new List<MediaTagType>(),
|
|
|
|
|
ImageHasPartitions = false,
|
|
|
|
|
ImageHasSessions = false,
|
|
|
|
|
ImageVersion = null,
|
|
|
|
|
ImageApplication = null,
|
|
|
|
|
ImageApplicationVersion = null,
|
|
|
|
|
ImageCreator = null,
|
|
|
|
|
ImageComments = null,
|
|
|
|
|
MediaManufacturer = null,
|
|
|
|
|
MediaModel = null,
|
|
|
|
|
MediaSerialNumber = null,
|
|
|
|
|
MediaBarcode = null,
|
|
|
|
|
MediaPartNumber = null,
|
|
|
|
|
MediaSequence = 0,
|
|
|
|
|
LastMediaSequence = 0,
|
|
|
|
|
DriveManufacturer = null,
|
|
|
|
|
DriveModel = null,
|
|
|
|
|
DriveSerialNumber = null,
|
|
|
|
|
DriveFirmwareRevision = null
|
|
|
|
|
};
|
2015-04-19 03:50:31 +01:00
|
|
|
}
|
|
|
|
|
|
2016-09-05 17:37:31 +01:00
|
|
|
public override bool IdentifyImage(Filter imageFilter)
|
2015-04-19 03:50:31 +01:00
|
|
|
{
|
2016-09-05 17:37:31 +01:00
|
|
|
Stream stream = imageFilter.GetDataForkStream();
|
2015-04-19 03:50:31 +01:00
|
|
|
stream.Seek(0, SeekOrigin.Begin);
|
|
|
|
|
|
2017-12-19 20:33:03 +00:00
|
|
|
if(stream.Length < 65) return false;
|
2015-04-19 03:50:31 +01:00
|
|
|
|
|
|
|
|
byte[] header = new byte[64];
|
|
|
|
|
stream.Read(header, 0, 64);
|
|
|
|
|
|
2016-07-28 22:25:26 +01:00
|
|
|
uint magic = BitConverter.ToUInt32(header, 0x00);
|
2017-12-19 20:33:03 +00:00
|
|
|
if(magic != MAGIC) return false;
|
2015-04-19 03:50:31 +01:00
|
|
|
|
2016-07-28 22:25:26 +01:00
|
|
|
uint dataoff = BitConverter.ToUInt32(header, 0x18);
|
2017-12-19 20:33:03 +00:00
|
|
|
if(dataoff > stream.Length) return false;
|
2015-04-19 03:50:31 +01:00
|
|
|
|
2016-07-28 22:25:26 +01:00
|
|
|
uint datasize = BitConverter.ToUInt32(header, 0x1C);
|
2015-04-19 03:50:31 +01:00
|
|
|
// There seems to be incorrect endian in some images on the wild
|
2017-12-19 20:33:03 +00:00
|
|
|
if(datasize == 0x00800C00) datasize = 0x000C8000;
|
|
|
|
|
if(dataoff + datasize > stream.Length) return false;
|
2015-04-19 03:50:31 +01:00
|
|
|
|
2016-07-28 22:25:26 +01:00
|
|
|
uint commentoff = BitConverter.ToUInt32(header, 0x20);
|
2017-12-19 20:33:03 +00:00
|
|
|
if(commentoff > stream.Length) return false;
|
2015-04-19 03:50:31 +01:00
|
|
|
|
2016-07-28 22:25:26 +01:00
|
|
|
uint commentsize = BitConverter.ToUInt32(header, 0x24);
|
2017-12-19 20:33:03 +00:00
|
|
|
if(commentoff + commentsize > stream.Length) return false;
|
2015-04-19 03:50:31 +01:00
|
|
|
|
2016-07-28 22:25:26 +01:00
|
|
|
uint creatoroff = BitConverter.ToUInt32(header, 0x28);
|
2017-12-19 20:33:03 +00:00
|
|
|
if(creatoroff > stream.Length) return false;
|
2015-04-19 03:50:31 +01:00
|
|
|
|
2016-07-28 22:25:26 +01:00
|
|
|
uint creatorsize = BitConverter.ToUInt32(header, 0x2C);
|
2015-04-22 19:32:51 +01:00
|
|
|
return creatoroff + creatorsize <= stream.Length;
|
2015-04-19 03:50:31 +01:00
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2016-09-05 17:37:31 +01:00
|
|
|
public override bool OpenImage(Filter imageFilter)
|
2015-04-19 03:50:31 +01:00
|
|
|
{
|
2016-09-05 17:37:31 +01:00
|
|
|
Stream stream = imageFilter.GetDataForkStream();
|
2015-04-19 03:50:31 +01:00
|
|
|
stream.Seek(0, SeekOrigin.Begin);
|
|
|
|
|
|
2017-12-20 17:15:26 +00:00
|
|
|
imageHeader = new A2ImgHeader();
|
2015-04-19 03:50:31 +01:00
|
|
|
|
|
|
|
|
byte[] header = new byte[64];
|
|
|
|
|
stream.Read(header, 0, 64);
|
|
|
|
|
byte[] magic = new byte[4];
|
|
|
|
|
byte[] creator = new byte[4];
|
|
|
|
|
|
|
|
|
|
Array.Copy(header, 0, magic, 0, 4);
|
|
|
|
|
Array.Copy(header, 4, creator, 0, 4);
|
|
|
|
|
|
2017-12-20 17:15:26 +00:00
|
|
|
imageHeader.Magic = BitConverter.ToUInt32(header, 0x00);
|
|
|
|
|
imageHeader.Creator = BitConverter.ToUInt32(header, 0x04);
|
|
|
|
|
imageHeader.HeaderSize = BitConverter.ToUInt16(header, 0x08);
|
|
|
|
|
imageHeader.Version = BitConverter.ToUInt16(header, 0x0A);
|
|
|
|
|
imageHeader.ImageFormat = BitConverter.ToUInt32(header, 0x0C);
|
|
|
|
|
imageHeader.Flags = BitConverter.ToUInt32(header, 0x10);
|
|
|
|
|
imageHeader.Blocks = BitConverter.ToUInt32(header, 0x14);
|
|
|
|
|
imageHeader.DataOffset = BitConverter.ToUInt32(header, 0x18);
|
|
|
|
|
imageHeader.DataSize = BitConverter.ToUInt32(header, 0x1C);
|
|
|
|
|
imageHeader.CommentOffset = BitConverter.ToUInt32(header, 0x20);
|
|
|
|
|
imageHeader.CommentSize = BitConverter.ToUInt32(header, 0x24);
|
|
|
|
|
imageHeader.CreatorSpecificOffset = BitConverter.ToUInt32(header, 0x28);
|
|
|
|
|
imageHeader.CreatorSpecificSize = BitConverter.ToUInt32(header, 0x2C);
|
|
|
|
|
imageHeader.Reserved1 = BitConverter.ToUInt32(header, 0x30);
|
|
|
|
|
imageHeader.Reserved2 = BitConverter.ToUInt32(header, 0x34);
|
|
|
|
|
imageHeader.Reserved3 = BitConverter.ToUInt32(header, 0x38);
|
|
|
|
|
imageHeader.Reserved4 = BitConverter.ToUInt32(header, 0x3C);
|
|
|
|
|
|
|
|
|
|
if(imageHeader.DataSize == 0x00800C00)
|
2015-04-19 03:50:31 +01:00
|
|
|
{
|
2017-12-20 17:15:26 +00:00
|
|
|
imageHeader.DataSize = 0x000C8000;
|
2015-10-18 22:04:03 +01:00
|
|
|
DicConsole.DebugWriteLine("2MG plugin", "Detected incorrect endian on data size field, correcting.");
|
2015-04-19 03:50:31 +01:00
|
|
|
}
|
|
|
|
|
|
2015-10-18 22:04:03 +01:00
|
|
|
DicConsole.DebugWriteLine("2MG plugin", "ImageHeader.magic = \"{0}\"", Encoding.ASCII.GetString(magic));
|
|
|
|
|
DicConsole.DebugWriteLine("2MG plugin", "ImageHeader.creator = \"{0}\"", Encoding.ASCII.GetString(creator));
|
2017-12-20 17:15:26 +00:00
|
|
|
DicConsole.DebugWriteLine("2MG plugin", "ImageHeader.headerSize = {0}", imageHeader.HeaderSize);
|
|
|
|
|
DicConsole.DebugWriteLine("2MG plugin", "ImageHeader.version = {0}", imageHeader.Version);
|
|
|
|
|
DicConsole.DebugWriteLine("2MG plugin", "ImageHeader.imageFormat = {0}", imageHeader.ImageFormat);
|
|
|
|
|
DicConsole.DebugWriteLine("2MG plugin", "ImageHeader.flags = 0x{0:X8}", imageHeader.Flags);
|
|
|
|
|
DicConsole.DebugWriteLine("2MG plugin", "ImageHeader.blocks = {0}", imageHeader.Blocks);
|
|
|
|
|
DicConsole.DebugWriteLine("2MG plugin", "ImageHeader.dataOffset = 0x{0:X8}", imageHeader.DataOffset);
|
|
|
|
|
DicConsole.DebugWriteLine("2MG plugin", "ImageHeader.dataSize = {0}", imageHeader.DataSize);
|
|
|
|
|
DicConsole.DebugWriteLine("2MG plugin", "ImageHeader.commentOffset = 0x{0:X8}", imageHeader.CommentOffset);
|
|
|
|
|
DicConsole.DebugWriteLine("2MG plugin", "ImageHeader.commentSize = {0}", imageHeader.CommentSize);
|
2017-12-19 20:33:03 +00:00
|
|
|
DicConsole.DebugWriteLine("2MG plugin", "ImageHeader.creatorSpecificOffset = 0x{0:X8}",
|
2017-12-20 17:15:26 +00:00
|
|
|
imageHeader.CreatorSpecificOffset);
|
2017-12-19 20:33:03 +00:00
|
|
|
DicConsole.DebugWriteLine("2MG plugin", "ImageHeader.creatorSpecificSize = {0}",
|
2017-12-20 17:15:26 +00:00
|
|
|
imageHeader.CreatorSpecificSize);
|
|
|
|
|
DicConsole.DebugWriteLine("2MG plugin", "ImageHeader.reserved1 = 0x{0:X8}", imageHeader.Reserved1);
|
|
|
|
|
DicConsole.DebugWriteLine("2MG plugin", "ImageHeader.reserved2 = 0x{0:X8}", imageHeader.Reserved2);
|
|
|
|
|
DicConsole.DebugWriteLine("2MG plugin", "ImageHeader.reserved3 = 0x{0:X8}", imageHeader.Reserved3);
|
|
|
|
|
DicConsole.DebugWriteLine("2MG plugin", "ImageHeader.reserved4 = 0x{0:X8}", imageHeader.Reserved4);
|
2015-04-19 03:50:31 +01:00
|
|
|
|
2017-12-20 17:15:26 +00:00
|
|
|
if(imageHeader.DataSize == 0 && imageHeader.Blocks == 0 &&
|
|
|
|
|
imageHeader.ImageFormat != PRODOS_SECTOR_ORDER) return false;
|
2015-04-19 03:50:31 +01:00
|
|
|
|
2017-12-24 00:12:31 +00:00
|
|
|
switch(imageHeader.ImageFormat)
|
|
|
|
|
{
|
2017-12-21 04:43:29 +00:00
|
|
|
case PRODOS_SECTOR_ORDER when imageHeader.Blocks == 0: return false;
|
2017-12-24 00:12:31 +00:00
|
|
|
case PRODOS_SECTOR_ORDER:
|
|
|
|
|
imageHeader.DataSize = imageHeader.Blocks * 512;
|
2017-12-21 04:43:29 +00:00
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
if(imageHeader.Blocks == 0 && imageHeader.DataSize != 0)
|
|
|
|
|
imageHeader.Blocks = imageHeader.DataSize / 256;
|
|
|
|
|
else if(imageHeader.DataSize == 0 && imageHeader.Blocks != 0)
|
|
|
|
|
imageHeader.DataSize = imageHeader.Blocks * 256;
|
|
|
|
|
break;
|
|
|
|
|
}
|
2015-04-19 03:50:31 +01:00
|
|
|
|
2017-12-20 17:15:26 +00:00
|
|
|
ImageInfo.SectorSize = (uint)(imageHeader.ImageFormat == PRODOS_SECTOR_ORDER ? 512 : 256);
|
2015-04-19 03:50:31 +01:00
|
|
|
|
2017-12-20 17:15:26 +00:00
|
|
|
ImageInfo.Sectors = imageHeader.Blocks;
|
|
|
|
|
ImageInfo.ImageSize = imageHeader.DataSize;
|
2015-04-19 03:50:31 +01:00
|
|
|
|
2017-12-20 17:15:26 +00:00
|
|
|
switch(imageHeader.Creator)
|
2015-04-19 03:50:31 +01:00
|
|
|
{
|
2017-12-20 17:15:26 +00:00
|
|
|
case CREATOR_ASIMOV:
|
|
|
|
|
ImageInfo.ImageApplication = "ASIMOV2";
|
2015-04-19 03:50:31 +01:00
|
|
|
break;
|
2017-12-20 17:15:26 +00:00
|
|
|
case CREATOR_BERNIE:
|
|
|
|
|
ImageInfo.ImageApplication = "Bernie ][ the Rescue";
|
2015-04-19 03:50:31 +01:00
|
|
|
break;
|
2017-12-20 17:15:26 +00:00
|
|
|
case CREATOR_CATAKIG:
|
|
|
|
|
ImageInfo.ImageApplication = "Catakig";
|
2015-04-19 03:50:31 +01:00
|
|
|
break;
|
2017-12-20 17:15:26 +00:00
|
|
|
case CREATOR_SHEPPY:
|
|
|
|
|
ImageInfo.ImageApplication = "Sheppy's ImageMaker";
|
2015-04-19 03:50:31 +01:00
|
|
|
break;
|
2017-12-20 17:15:26 +00:00
|
|
|
case CREATOR_SWEET:
|
|
|
|
|
ImageInfo.ImageApplication = "Sweet16";
|
2015-04-19 03:50:31 +01:00
|
|
|
break;
|
2017-12-20 17:15:26 +00:00
|
|
|
case CREATOR_XGS:
|
|
|
|
|
ImageInfo.ImageApplication = "XGS";
|
2015-04-19 03:50:31 +01:00
|
|
|
break;
|
2017-12-20 17:15:26 +00:00
|
|
|
case CREATOR_CIDER:
|
|
|
|
|
ImageInfo.ImageApplication = "CiderPress";
|
2016-08-02 18:09:24 +01:00
|
|
|
break;
|
2015-04-19 03:50:31 +01:00
|
|
|
default:
|
2017-12-21 17:58:51 +00:00
|
|
|
ImageInfo.ImageApplication = $"Unknown creator code \"{Encoding.ASCII.GetString(creator)}\"";
|
2015-04-19 03:50:31 +01:00
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
2017-12-20 17:15:26 +00:00
|
|
|
ImageInfo.ImageVersion = imageHeader.Version.ToString();
|
2015-04-19 03:50:31 +01:00
|
|
|
|
2017-12-20 17:15:26 +00:00
|
|
|
if(imageHeader.CommentOffset != 0 && imageHeader.CommentSize != 0)
|
2015-04-19 03:50:31 +01:00
|
|
|
{
|
2017-12-20 17:15:26 +00:00
|
|
|
stream.Seek(imageHeader.CommentOffset, SeekOrigin.Begin);
|
2015-04-19 03:50:31 +01:00
|
|
|
|
2017-12-20 17:15:26 +00:00
|
|
|
byte[] comments = new byte[imageHeader.CommentSize];
|
|
|
|
|
stream.Read(comments, 0, (int)imageHeader.CommentSize);
|
|
|
|
|
ImageInfo.ImageComments = Encoding.ASCII.GetString(comments);
|
2015-04-19 03:50:31 +01:00
|
|
|
}
|
|
|
|
|
|
2017-12-20 17:15:26 +00:00
|
|
|
ImageInfo.ImageCreationTime = imageFilter.GetCreationTime();
|
|
|
|
|
ImageInfo.ImageLastModificationTime = imageFilter.GetLastWriteTime();
|
|
|
|
|
ImageInfo.ImageName = Path.GetFileNameWithoutExtension(imageFilter.GetFilename());
|
|
|
|
|
ImageInfo.MediaType = GetMediaType();
|
2015-04-19 03:50:31 +01:00
|
|
|
|
2017-12-20 17:15:26 +00:00
|
|
|
a2MgImageFilter = imageFilter;
|
2015-04-19 03:50:31 +01:00
|
|
|
|
2017-12-20 17:15:26 +00:00
|
|
|
ImageInfo.XmlMediaType = XmlMediaType.BlockMedia;
|
2015-12-05 17:21:47 +00:00
|
|
|
|
2017-12-20 17:15:26 +00:00
|
|
|
DicConsole.VerboseWriteLine("2MG image contains a disk of type {0}", ImageInfo.MediaType);
|
|
|
|
|
if(!string.IsNullOrEmpty(ImageInfo.ImageComments))
|
|
|
|
|
DicConsole.VerboseWriteLine("2MG comments: {0}", ImageInfo.ImageComments);
|
2016-08-21 17:35:35 +01:00
|
|
|
|
2017-12-20 17:15:26 +00:00
|
|
|
switch(ImageInfo.MediaType)
|
2017-12-19 20:33:03 +00:00
|
|
|
{
|
|
|
|
|
case MediaType.Apple32SS:
|
2017-12-20 17:15:26 +00:00
|
|
|
ImageInfo.Cylinders = 35;
|
|
|
|
|
ImageInfo.Heads = 1;
|
|
|
|
|
ImageInfo.SectorsPerTrack = 13;
|
2017-12-19 20:33:03 +00:00
|
|
|
break;
|
|
|
|
|
case MediaType.Apple32DS:
|
2017-12-20 17:15:26 +00:00
|
|
|
ImageInfo.Cylinders = 35;
|
|
|
|
|
ImageInfo.Heads = 2;
|
|
|
|
|
ImageInfo.SectorsPerTrack = 13;
|
2017-12-19 20:33:03 +00:00
|
|
|
break;
|
|
|
|
|
case MediaType.Apple33SS:
|
2017-12-20 17:15:26 +00:00
|
|
|
ImageInfo.Cylinders = 35;
|
|
|
|
|
ImageInfo.Heads = 1;
|
|
|
|
|
ImageInfo.SectorsPerTrack = 16;
|
2017-12-19 20:33:03 +00:00
|
|
|
break;
|
|
|
|
|
case MediaType.Apple33DS:
|
2017-12-20 17:15:26 +00:00
|
|
|
ImageInfo.Cylinders = 35;
|
|
|
|
|
ImageInfo.Heads = 2;
|
|
|
|
|
ImageInfo.SectorsPerTrack = 16;
|
2017-12-19 20:33:03 +00:00
|
|
|
break;
|
|
|
|
|
case MediaType.AppleSonySS:
|
2017-12-20 17:15:26 +00:00
|
|
|
ImageInfo.Cylinders = 80;
|
|
|
|
|
ImageInfo.Heads = 1;
|
2017-12-19 20:33:03 +00:00
|
|
|
// Variable sectors per track, this suffices
|
2017-12-20 17:15:26 +00:00
|
|
|
ImageInfo.SectorsPerTrack = 10;
|
2017-12-19 20:33:03 +00:00
|
|
|
break;
|
|
|
|
|
case MediaType.AppleSonyDS:
|
2017-12-20 17:15:26 +00:00
|
|
|
ImageInfo.Cylinders = 80;
|
|
|
|
|
ImageInfo.Heads = 2;
|
2017-12-19 20:33:03 +00:00
|
|
|
// Variable sectors per track, this suffices
|
2017-12-20 17:15:26 +00:00
|
|
|
ImageInfo.SectorsPerTrack = 10;
|
2017-12-19 20:33:03 +00:00
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return true;
|
2015-04-19 03:50:31 +01:00
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2015-04-19 03:50:31 +01:00
|
|
|
public override bool ImageHasPartitions()
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2015-04-19 03:50:31 +01:00
|
|
|
public override ulong GetImageSize()
|
|
|
|
|
{
|
2017-12-20 17:15:26 +00:00
|
|
|
return ImageInfo.ImageSize;
|
2015-04-19 03:50:31 +01:00
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2015-04-19 03:50:31 +01:00
|
|
|
public override ulong GetSectors()
|
|
|
|
|
{
|
2017-12-20 17:15:26 +00:00
|
|
|
return ImageInfo.Sectors;
|
2015-04-19 03:50:31 +01:00
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2015-04-19 03:50:31 +01:00
|
|
|
public override uint GetSectorSize()
|
|
|
|
|
{
|
2017-12-20 17:15:26 +00:00
|
|
|
return ImageInfo.SectorSize;
|
2015-04-19 03:50:31 +01:00
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2015-04-19 03:50:31 +01:00
|
|
|
public override string GetImageFormat()
|
|
|
|
|
{
|
|
|
|
|
return "Apple 2IMG";
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2015-04-19 03:50:31 +01:00
|
|
|
public override string GetImageVersion()
|
|
|
|
|
{
|
2017-12-20 17:15:26 +00:00
|
|
|
return ImageInfo.ImageVersion;
|
2015-04-19 03:50:31 +01:00
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2015-04-19 03:50:31 +01:00
|
|
|
public override string GetImageApplication()
|
|
|
|
|
{
|
2017-12-20 17:15:26 +00:00
|
|
|
return ImageInfo.ImageApplication;
|
2015-04-19 03:50:31 +01:00
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2015-04-19 03:50:31 +01:00
|
|
|
public override string GetImageApplicationVersion()
|
|
|
|
|
{
|
2017-12-20 17:15:26 +00:00
|
|
|
return ImageInfo.ImageApplicationVersion;
|
2015-04-19 03:50:31 +01:00
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2015-04-19 03:50:31 +01:00
|
|
|
public override string GetImageCreator()
|
|
|
|
|
{
|
2017-12-20 17:15:26 +00:00
|
|
|
return ImageInfo.ImageCreator;
|
2015-04-19 03:50:31 +01:00
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2015-04-19 03:50:31 +01:00
|
|
|
public override DateTime GetImageCreationTime()
|
|
|
|
|
{
|
2017-12-20 17:15:26 +00:00
|
|
|
return ImageInfo.ImageCreationTime;
|
2015-04-19 03:50:31 +01:00
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2015-04-19 03:50:31 +01:00
|
|
|
public override DateTime GetImageLastModificationTime()
|
|
|
|
|
{
|
2017-12-20 17:15:26 +00:00
|
|
|
return ImageInfo.ImageLastModificationTime;
|
2015-04-19 03:50:31 +01:00
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2015-04-19 03:50:31 +01:00
|
|
|
public override string GetImageName()
|
|
|
|
|
{
|
2017-12-20 17:15:26 +00:00
|
|
|
return ImageInfo.ImageName;
|
2015-04-19 03:50:31 +01:00
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2015-04-19 03:50:31 +01:00
|
|
|
public override string GetImageComments()
|
|
|
|
|
{
|
2017-12-20 17:15:26 +00:00
|
|
|
return ImageInfo.ImageComments;
|
2015-04-19 03:50:31 +01:00
|
|
|
}
|
|
|
|
|
|
2016-01-16 03:54:55 +00:00
|
|
|
public override MediaType GetMediaType()
|
2015-04-19 03:50:31 +01:00
|
|
|
{
|
2017-12-20 17:15:26 +00:00
|
|
|
switch(ImageInfo.Sectors)
|
2015-04-19 03:50:31 +01:00
|
|
|
{
|
2017-12-19 20:33:03 +00:00
|
|
|
case 455: return MediaType.Apple32SS;
|
|
|
|
|
case 910: return MediaType.Apple32DS;
|
|
|
|
|
case 560: return MediaType.Apple33SS;
|
|
|
|
|
case 1120: return MediaType.Apple33DS;
|
|
|
|
|
case 800: return MediaType.AppleSonySS;
|
|
|
|
|
case 1600: return MediaType.AppleSonyDS;
|
|
|
|
|
default: return MediaType.Unknown;
|
2015-04-19 03:50:31 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override byte[] ReadSector(ulong sectorAddress)
|
|
|
|
|
{
|
|
|
|
|
return ReadSectors(sectorAddress, 1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override byte[] ReadSectors(ulong sectorAddress, uint length)
|
|
|
|
|
{
|
2017-12-20 17:15:26 +00:00
|
|
|
if(sectorAddress > ImageInfo.Sectors - 1)
|
2016-07-28 22:25:26 +01:00
|
|
|
throw new ArgumentOutOfRangeException(nameof(sectorAddress), "Sector address not found");
|
2015-04-19 03:50:31 +01:00
|
|
|
|
2017-12-20 17:15:26 +00:00
|
|
|
if(sectorAddress + length > ImageInfo.Sectors)
|
2016-07-28 22:25:26 +01:00
|
|
|
throw new ArgumentOutOfRangeException(nameof(length), "Requested more sectors than available");
|
2015-04-19 03:50:31 +01:00
|
|
|
|
2017-12-20 17:15:26 +00:00
|
|
|
byte[] buffer = new byte[length * ImageInfo.SectorSize];
|
2015-04-19 03:50:31 +01:00
|
|
|
|
2017-12-20 17:15:26 +00:00
|
|
|
Stream stream = a2MgImageFilter.GetDataForkStream();
|
2015-04-19 03:50:31 +01:00
|
|
|
|
2017-12-20 17:15:26 +00:00
|
|
|
stream.Seek((long)(imageHeader.DataOffset + sectorAddress * ImageInfo.SectorSize), SeekOrigin.Begin);
|
2015-04-19 03:50:31 +01:00
|
|
|
|
2017-12-20 17:15:26 +00:00
|
|
|
stream.Read(buffer, 0, (int)(length * ImageInfo.SectorSize));
|
2015-04-19 03:50:31 +01:00
|
|
|
|
|
|
|
|
return buffer;
|
|
|
|
|
}
|
|
|
|
|
|
2016-01-16 03:54:55 +00:00
|
|
|
public override byte[] ReadDiskTag(MediaTagType tag)
|
2015-04-19 03:50:31 +01:00
|
|
|
{
|
|
|
|
|
throw new FeatureUnsupportedImageException("Feature not supported by image format");
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2015-04-19 03:50:31 +01:00
|
|
|
public override byte[] ReadSectorTag(ulong sectorAddress, SectorTagType tag)
|
|
|
|
|
{
|
|
|
|
|
throw new FeatureUnsupportedImageException("Feature not supported by image format");
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2015-04-19 03:50:31 +01:00
|
|
|
public override byte[] ReadSector(ulong sectorAddress, uint track)
|
|
|
|
|
{
|
|
|
|
|
throw new FeatureUnsupportedImageException("Feature not supported by image format");
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2015-04-19 03:50:31 +01:00
|
|
|
public override byte[] ReadSectorTag(ulong sectorAddress, uint track, SectorTagType tag)
|
|
|
|
|
{
|
|
|
|
|
throw new FeatureUnsupportedImageException("Feature not supported by image format");
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2015-04-19 03:50:31 +01:00
|
|
|
public override byte[] ReadSectorsTag(ulong sectorAddress, uint length, SectorTagType tag)
|
|
|
|
|
{
|
|
|
|
|
throw new FeatureUnsupportedImageException("Feature not supported by image format");
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2015-04-19 03:50:31 +01:00
|
|
|
public override byte[] ReadSectors(ulong sectorAddress, uint length, uint track)
|
|
|
|
|
{
|
|
|
|
|
throw new FeatureUnsupportedImageException("Feature not supported by image format");
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2015-04-19 03:50:31 +01:00
|
|
|
public override byte[] ReadSectorsTag(ulong sectorAddress, uint length, uint track, SectorTagType tag)
|
|
|
|
|
{
|
|
|
|
|
throw new FeatureUnsupportedImageException("Feature not supported by image format");
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2015-04-19 03:50:31 +01:00
|
|
|
public override byte[] ReadSectorLong(ulong sectorAddress)
|
|
|
|
|
{
|
|
|
|
|
throw new FeatureUnsupportedImageException("Feature not supported by image format");
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2015-04-19 03:50:31 +01:00
|
|
|
public override byte[] ReadSectorLong(ulong sectorAddress, uint track)
|
|
|
|
|
{
|
|
|
|
|
throw new FeatureUnsupportedImageException("Feature not supported by image format");
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2015-04-19 03:50:31 +01:00
|
|
|
public override byte[] ReadSectorsLong(ulong sectorAddress, uint length)
|
|
|
|
|
{
|
|
|
|
|
throw new FeatureUnsupportedImageException("Feature not supported by image format");
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2015-04-19 03:50:31 +01:00
|
|
|
public override byte[] ReadSectorsLong(ulong sectorAddress, uint length, uint track)
|
|
|
|
|
{
|
|
|
|
|
throw new FeatureUnsupportedImageException("Feature not supported by image format");
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2016-01-16 03:54:55 +00:00
|
|
|
public override string GetMediaManufacturer()
|
2015-04-19 03:50:31 +01:00
|
|
|
{
|
|
|
|
|
return null;
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2016-01-16 03:54:55 +00:00
|
|
|
public override string GetMediaModel()
|
2015-04-19 03:50:31 +01:00
|
|
|
{
|
|
|
|
|
return null;
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2016-01-16 03:54:55 +00:00
|
|
|
public override string GetMediaSerialNumber()
|
2015-04-19 03:50:31 +01:00
|
|
|
{
|
|
|
|
|
return null;
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2016-01-16 03:54:55 +00:00
|
|
|
public override string GetMediaBarcode()
|
2015-04-19 03:50:31 +01:00
|
|
|
{
|
|
|
|
|
return null;
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2016-01-16 03:54:55 +00:00
|
|
|
public override string GetMediaPartNumber()
|
2015-04-19 03:50:31 +01:00
|
|
|
{
|
|
|
|
|
return null;
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2016-01-16 03:54:55 +00:00
|
|
|
public override int GetMediaSequence()
|
2015-04-19 03:50:31 +01:00
|
|
|
{
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2015-04-19 03:50:31 +01:00
|
|
|
public override int GetLastDiskSequence()
|
|
|
|
|
{
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2015-04-19 03:50:31 +01:00
|
|
|
public override string GetDriveManufacturer()
|
|
|
|
|
{
|
|
|
|
|
return null;
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2015-04-19 03:50:31 +01:00
|
|
|
public override string GetDriveModel()
|
|
|
|
|
{
|
|
|
|
|
return null;
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2015-04-19 03:50:31 +01:00
|
|
|
public override string GetDriveSerialNumber()
|
|
|
|
|
{
|
|
|
|
|
return null;
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2016-07-28 22:25:26 +01:00
|
|
|
public override List<Partition> GetPartitions()
|
2015-04-19 03:50:31 +01:00
|
|
|
{
|
|
|
|
|
throw new FeatureUnsupportedImageException("Feature not supported by image format");
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
|
|
|
|
public override List<Track> GetTracks()
|
2015-04-19 03:50:31 +01:00
|
|
|
{
|
|
|
|
|
throw new FeatureUnsupportedImageException("Feature not supported by image format");
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
|
|
|
|
public override List<Track> GetSessionTracks(Session session)
|
2015-04-19 03:50:31 +01:00
|
|
|
{
|
|
|
|
|
throw new FeatureUnsupportedImageException("Feature not supported by image format");
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
|
|
|
|
public override List<Track> GetSessionTracks(ushort session)
|
2015-04-19 03:50:31 +01:00
|
|
|
{
|
|
|
|
|
throw new FeatureUnsupportedImageException("Feature not supported by image format");
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
|
|
|
|
public override List<Session> GetSessions()
|
2015-04-19 03:50:31 +01:00
|
|
|
{
|
|
|
|
|
throw new FeatureUnsupportedImageException("Feature not supported by image format");
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2015-04-19 03:50:31 +01:00
|
|
|
public override bool? VerifySector(ulong sectorAddress)
|
|
|
|
|
{
|
|
|
|
|
return null;
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2015-04-19 03:50:31 +01:00
|
|
|
public override bool? VerifySector(ulong sectorAddress, uint track)
|
|
|
|
|
{
|
|
|
|
|
throw new FeatureUnsupportedImageException("Feature not supported by image format");
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2017-12-20 17:15:26 +00:00
|
|
|
public override bool? VerifySectors(ulong sectorAddress, uint length, out List<ulong> failingLbas,
|
|
|
|
|
out List<ulong> unknownLbas)
|
2015-04-19 03:50:31 +01:00
|
|
|
{
|
2017-12-20 17:15:26 +00:00
|
|
|
failingLbas = new List<ulong>();
|
|
|
|
|
unknownLbas = new List<ulong>();
|
|
|
|
|
for(ulong i = 0; i < ImageInfo.Sectors; i++) unknownLbas.Add(i);
|
2017-12-19 20:33:03 +00:00
|
|
|
|
2015-04-19 03:50:31 +01:00
|
|
|
return null;
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2017-12-20 17:15:26 +00:00
|
|
|
public override bool? VerifySectors(ulong sectorAddress, uint length, uint track, out List<ulong> failingLbas,
|
|
|
|
|
out List<ulong> unknownLbas)
|
2015-04-19 03:50:31 +01:00
|
|
|
{
|
|
|
|
|
throw new FeatureUnsupportedImageException("Feature not supported by image format");
|
|
|
|
|
}
|
2015-04-22 19:32:51 +01:00
|
|
|
|
2016-01-16 03:54:55 +00:00
|
|
|
public override bool? VerifyMediaImage()
|
2015-04-19 03:50:31 +01:00
|
|
|
{
|
|
|
|
|
return null;
|
|
|
|
|
}
|
2017-12-24 00:12:31 +00:00
|
|
|
|
|
|
|
|
[SuppressMessage("ReSharper", "NotAccessedField.Local")]
|
|
|
|
|
struct A2ImgHeader
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Offset 0x00, magic
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint Magic;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Offset 0x04, disk image creator ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint Creator;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Offset 0x08, header size, constant 0x0040
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ushort HeaderSize;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Offset 0x0A, disk image version
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ushort Version;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Offset 0x0C, disk image format
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint ImageFormat;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Offset 0x10, flags and volume number
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint Flags;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Offset 0x14, blocks for ProDOS, 0 otherwise
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint Blocks;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Offset 0x18, offset to data
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint DataOffset;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Offset 0x1C, data size in bytes
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint DataSize;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Offset 0x20, offset to optional comment
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint CommentOffset;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Offset 0x24, length of optional comment
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint CommentSize;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Offset 0x28, offset to creator specific chunk
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint CreatorSpecificOffset;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Offset 0x2C, creator specific chunk size
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint CreatorSpecificSize;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Offset 0x30, reserved, should be zero
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint Reserved1;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Offset 0x34, reserved, should be zero
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint Reserved2;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Offset 0x38, reserved, should be zero
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint Reserved3;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Offset 0x3C, reserved, should be zero
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint Reserved4;
|
|
|
|
|
}
|
2015-04-19 03:50:31 +01:00
|
|
|
}
|
2017-12-19 20:33:03 +00:00
|
|
|
}
|