mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Added hint for XML metadata creator to know which kind of
media the image represents.
This commit is contained in:
@@ -360,6 +360,8 @@ namespace DiscImageChef.ImagePlugins
|
|||||||
|
|
||||||
a2mgImagePath = imagePath;
|
a2mgImagePath = imagePath;
|
||||||
|
|
||||||
|
ImageInfo.xmlMediaType = XmlMediaType.BlockMedia;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1279,6 +1279,8 @@ namespace DiscImageChef.ImagePlugins
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ImageInfo.xmlMediaType = XmlMediaType.OpticalDisc;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|||||||
@@ -1,3 +1,17 @@
|
|||||||
|
2015-12-05 Natalia Portillo <claunia@claunia.com>
|
||||||
|
|
||||||
|
* VHD.cs:
|
||||||
|
* Nero.cs:
|
||||||
|
* CDRWin.cs:
|
||||||
|
* Apple2MG.cs:
|
||||||
|
* TeleDisk.cs:
|
||||||
|
* ImageInfo.cs:
|
||||||
|
* DiskCopy42.cs:
|
||||||
|
* ImagePlugin.cs:
|
||||||
|
* ZZZRawImage.cs:
|
||||||
|
Added hint for XML metadata creator to know which kind of
|
||||||
|
media the image represents.
|
||||||
|
|
||||||
2015-11-23 Natalia Portillo <claunia@claunia.com>
|
2015-11-23 Natalia Portillo <claunia@claunia.com>
|
||||||
|
|
||||||
* VHD.cs:
|
* VHD.cs:
|
||||||
|
|||||||
@@ -224,6 +224,8 @@ namespace DiscImageChef.ImagePlugins
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ImageInfo.xmlMediaType = XmlMediaType.BlockMedia;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ namespace DiscImageChef.ImagePlugins
|
|||||||
public string driveManufacturer;
|
public string driveManufacturer;
|
||||||
public string driveModel;
|
public string driveModel;
|
||||||
public string driveSerialNumber;
|
public string driveSerialNumber;
|
||||||
|
public XmlMediaType xmlMediaType;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -622,6 +622,13 @@ namespace DiscImageChef.ImagePlugins
|
|||||||
ATAPI_IDENTIFY
|
ATAPI_IDENTIFY
|
||||||
};
|
};
|
||||||
|
|
||||||
|
public enum XmlMediaType
|
||||||
|
{
|
||||||
|
OpticalDisc,
|
||||||
|
BlockMedia,
|
||||||
|
LinearMedia
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Feature is supported by image but not implemented yet.
|
/// Feature is supported by image but not implemented yet.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -1596,6 +1596,9 @@ namespace DiscImageChef.ImagePlugins
|
|||||||
|
|
||||||
_imagePath = imagePath;
|
_imagePath = imagePath;
|
||||||
imageStream.Close();
|
imageStream.Close();
|
||||||
|
|
||||||
|
ImageInfo.xmlMediaType = XmlMediaType.OpticalDisc;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
|
|||||||
@@ -580,6 +580,9 @@ namespace DiscImageChef.ImagePlugins
|
|||||||
ImageInfo.diskType = DecodeTeleDiskDiskType();
|
ImageInfo.diskType = DecodeTeleDiskDiskType();
|
||||||
|
|
||||||
stream.Close();
|
stream.Close();
|
||||||
|
|
||||||
|
ImageInfo.xmlMediaType = XmlMediaType.BlockMedia;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -778,6 +778,8 @@ namespace DiscImageChef.ImagePlugins
|
|||||||
DicConsole.DebugWriteLine("VirtualPC plugin", "Bitmap is {0} sectors", bitmapSize);
|
DicConsole.DebugWriteLine("VirtualPC plugin", "Bitmap is {0} sectors", bitmapSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ImageInfo.xmlMediaType = XmlMediaType.BlockMedia;
|
||||||
|
|
||||||
switch (thisFooter.diskType)
|
switch (thisFooter.diskType)
|
||||||
{
|
{
|
||||||
case typeFixed:
|
case typeFixed:
|
||||||
|
|||||||
@@ -263,6 +263,22 @@ namespace DiscImageChef.ImagePlugins
|
|||||||
|
|
||||||
ImageInfo.diskType = CalculateDiskType();
|
ImageInfo.diskType = CalculateDiskType();
|
||||||
|
|
||||||
|
switch (ImageInfo.diskType)
|
||||||
|
{
|
||||||
|
case DiskType.CD:
|
||||||
|
case DiskType.DVDPR:
|
||||||
|
case DiskType.DVDR:
|
||||||
|
case DiskType.DVDRDL:
|
||||||
|
case DiskType.DVDPRDL:
|
||||||
|
case DiskType.BDR:
|
||||||
|
case DiskType.BDRXL:
|
||||||
|
ImageInfo.xmlMediaType = XmlMediaType.OpticalDisc;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
ImageInfo.xmlMediaType = XmlMediaType.BlockMedia;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
49
DiscImageChef/Commands/CreateSidecar.cs
Normal file
49
DiscImageChef/Commands/CreateSidecar.cs
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
// /***************************************************************************
|
||||||
|
// The Disc Image Chef
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
//
|
||||||
|
// Filename : CreateSidecar.cs
|
||||||
|
// Version : 1.0
|
||||||
|
// Author(s) : Natalia Portillo
|
||||||
|
//
|
||||||
|
// Component : Component
|
||||||
|
//
|
||||||
|
// Revision : $Revision$
|
||||||
|
// Last change by : $Author$
|
||||||
|
// Date : $Date$
|
||||||
|
//
|
||||||
|
// --[ Description ] ----------------------------------------------------------
|
||||||
|
//
|
||||||
|
// Description
|
||||||
|
//
|
||||||
|
// --[ License ] --------------------------------------------------------------
|
||||||
|
//
|
||||||
|
// This program is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as
|
||||||
|
// published by the Free Software Foundation, either version 3 of the
|
||||||
|
// License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program 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 General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
//
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// Copyright (C) 2011-2015 Claunia.com
|
||||||
|
// ****************************************************************************/
|
||||||
|
// //$Id$
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace DiscImageChef.Commands
|
||||||
|
{
|
||||||
|
public class CreateSidecar
|
||||||
|
{
|
||||||
|
public CreateSidecar()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user