diff --git a/DiscImageChef.Decoders/ChangeLog b/DiscImageChef.Decoders/ChangeLog index 48eea150a..5b8fc0528 100644 --- a/DiscImageChef.Decoders/ChangeLog +++ b/DiscImageChef.Decoders/ChangeLog @@ -1,3 +1,7 @@ +2016-10-16 Natalia Portillo + + * EVPD.cs: Corrected typo. Cleaned code. + 2016-10-14 Natalia Portillo * EVPD.cs: diff --git a/DiscImageChef.Decoders/PCMCIA/CIS.cs b/DiscImageChef.Decoders/PCMCIA/CIS.cs new file mode 100644 index 000000000..846080521 --- /dev/null +++ b/DiscImageChef.Decoders/PCMCIA/CIS.cs @@ -0,0 +1,41 @@ +// /*************************************************************************** +// The Disc Image Chef +// ---------------------------------------------------------------------------- +// +// Filename : CIS.cs +// Author(s) : Natalia Portillo +// +// Component : Component +// +// --[ Description ] ---------------------------------------------------------- +// +// Description +// +// --[ 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 . +// +// ---------------------------------------------------------------------------- +// Copyright © 2011-2016 Natalia Portillo +// ****************************************************************************/ +using System; +namespace DiscImageChef.Decoders.PCMCIA +{ + public class CIS + { + public CIS() + { + } + } +} diff --git a/DiscImageChef.Decoders/PCMCIA/Enums.cs b/DiscImageChef.Decoders/PCMCIA/Enums.cs new file mode 100644 index 000000000..30502cd16 --- /dev/null +++ b/DiscImageChef.Decoders/PCMCIA/Enums.cs @@ -0,0 +1,38 @@ +// /*************************************************************************** +// The Disc Image Chef +// ---------------------------------------------------------------------------- +// +// Filename : Enums.cs +// Author(s) : Natalia Portillo +// +// Component : Component +// +// --[ Description ] ---------------------------------------------------------- +// +// Description +// +// --[ 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 . +// +// ---------------------------------------------------------------------------- +// Copyright © 2011-2016 Natalia Portillo +// ****************************************************************************/ +using System; +namespace DiscImageChef.Decoders.PCMCIA +{ + public enum Enums + { + } +} diff --git a/DiscImageChef.Decoders/PCMCIA/Types.cs b/DiscImageChef.Decoders/PCMCIA/Types.cs new file mode 100644 index 000000000..1b76184f3 --- /dev/null +++ b/DiscImageChef.Decoders/PCMCIA/Types.cs @@ -0,0 +1,38 @@ +// /*************************************************************************** +// The Disc Image Chef +// ---------------------------------------------------------------------------- +// +// Filename : Types.cs +// Author(s) : Natalia Portillo +// +// Component : Component +// +// --[ Description ] ---------------------------------------------------------- +// +// Description +// +// --[ 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 . +// +// ---------------------------------------------------------------------------- +// Copyright © 2011-2016 Natalia Portillo +// ****************************************************************************/ +using System; +namespace DiscImageChef.Decoders.PCMCIA +{ + public struct Types + { + } +} diff --git a/DiscImageChef.Decoders/PCMCIA/VendorCode.cs b/DiscImageChef.Decoders/PCMCIA/VendorCode.cs new file mode 100644 index 000000000..5ef49c5db --- /dev/null +++ b/DiscImageChef.Decoders/PCMCIA/VendorCode.cs @@ -0,0 +1,41 @@ +// /*************************************************************************** +// The Disc Image Chef +// ---------------------------------------------------------------------------- +// +// Filename : VendorCode.cs +// Author(s) : Natalia Portillo +// +// Component : Component +// +// --[ Description ] ---------------------------------------------------------- +// +// Description +// +// --[ 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 . +// +// ---------------------------------------------------------------------------- +// Copyright © 2011-2016 Natalia Portillo +// ****************************************************************************/ +using System; +namespace DiscImageChef.Decoders.PCMCIA +{ + public class VendorCode + { + public VendorCode() + { + } + } +} diff --git a/DiscImageChef.Decoders/SCSI/EVPD.cs b/DiscImageChef.Decoders/SCSI/EVPD.cs index 0ce204e69..6353ba22f 100644 --- a/DiscImageChef.Decoders/SCSI/EVPD.cs +++ b/DiscImageChef.Decoders/SCSI/EVPD.cs @@ -32,9 +32,8 @@ using System; using System.Collections.Generic; -using System.Text; -using System.Security.Policy; using System.Linq; +using System.Text; using System.Text.RegularExpressions; namespace DiscImageChef.Decoders.SCSI @@ -787,7 +786,7 @@ namespace DiscImageChef.Decoders.SCSI { sb.AppendFormat("\t{0:X2}", identifier.Identifier[0]); for(int i = 1; i < identifier.Identifier.Length; i++) - sb.AppendFormat(":{0:X2}", identifier.Identifier[i]); + sb.AppendFormat(":{0:X2}", identifier.Identifier[i]); sb.AppendLine(); } @@ -1937,7 +1936,7 @@ namespace DiscImageChef.Decoders.SCSI break; case 8: sb.AppendLine("\tLTO Ultrium 2 cartridge inserted"); - break; + break; default: sb.AppendFormat("\tUnknown cartridge type code {0}", page.CartridgeType).AppendLine(); break; @@ -2236,7 +2235,7 @@ namespace DiscImageChef.Decoders.SCSI } #endregion EVPD Page 0xB2: TapeAlert Supported Flags page - + #region EVPD Page 0xB3: Automation Device Serial Number page public static string DecodePageB3(byte[] page) @@ -2505,7 +2504,7 @@ namespace DiscImageChef.Decoders.SCSI Array.Copy(pageResponse, 4, decoded.ControllerFirmware, 0, 4); Array.Copy(pageResponse, 8, decoded.BootFirmware, 0, 4); - Array.Copy(pageResponse, 12, decoded.ServoFirmware, 0, 4) + Array.Copy(pageResponse, 12, decoded.ServoFirmware, 0, 4); return decoded; }