2017-05-19 20:28:49 +01:00
|
|
|
// /***************************************************************************
|
2016-07-31 20:55:58 +01:00
|
|
|
// The Disc Image Chef
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
//
|
|
|
|
|
// Filename : Structs.cs
|
|
|
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
|
|
|
|
//
|
2016-07-31 20:56:53 +01:00
|
|
|
// Component : U.C.S.D. Pascal filesystem plugin.
|
2016-07-31 20:55:58 +01:00
|
|
|
//
|
|
|
|
|
// --[ Description ] ----------------------------------------------------------
|
|
|
|
|
//
|
2016-07-31 20:56:53 +01:00
|
|
|
// U.C.S.D. Pascal filesystem structures.
|
2016-07-31 20:55:58 +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/>.
|
|
|
|
|
//
|
|
|
|
|
// ----------------------------------------------------------------------------
|
2020-01-03 17:51:30 +00:00
|
|
|
// Copyright © 2011-2020 Natalia Portillo
|
2016-07-31 20:55:58 +01:00
|
|
|
// ****************************************************************************/
|
2016-07-31 20:56:53 +01:00
|
|
|
|
2020-02-27 00:33:26 +00:00
|
|
|
namespace Aaru.Filesystems.UCSDPascal
|
2016-07-31 20:55:58 +01:00
|
|
|
{
|
2016-07-31 20:56:53 +01:00
|
|
|
// Information from Call-A.P.P.L.E. Pascal Disk Directory Structure
|
2017-12-21 16:27:09 +00:00
|
|
|
public partial class PascalPlugin
|
2016-07-31 20:55:58 +01:00
|
|
|
{
|
2016-07-31 20:56:53 +01:00
|
|
|
struct PascalVolumeEntry
|
|
|
|
|
{
|
|
|
|
|
/// <summary>0x00, first block of volume entry</summary>
|
2018-01-06 00:41:14 +00:00
|
|
|
public short FirstBlock;
|
2016-07-31 20:56:53 +01:00
|
|
|
/// <summary>0x02, last block of volume entry</summary>
|
2018-01-06 00:41:14 +00:00
|
|
|
public short LastBlock;
|
2016-07-31 20:56:53 +01:00
|
|
|
/// <summary>0x04, entry type</summary>
|
2018-01-06 00:41:14 +00:00
|
|
|
public PascalFileKind EntryType;
|
2016-07-31 20:56:53 +01:00
|
|
|
/// <summary>0x06, volume name</summary>
|
2018-01-06 00:41:14 +00:00
|
|
|
public byte[] VolumeName;
|
2016-07-31 20:56:53 +01:00
|
|
|
/// <summary>0x0E, block in volume</summary>
|
2018-01-06 00:41:14 +00:00
|
|
|
public short Blocks;
|
2016-07-31 20:56:53 +01:00
|
|
|
/// <summary>0x10, files in volume</summary>
|
2018-01-06 00:41:14 +00:00
|
|
|
public short Files;
|
2016-07-31 20:56:53 +01:00
|
|
|
/// <summary>0x12, dummy</summary>
|
2018-01-06 00:41:14 +00:00
|
|
|
public short Dummy;
|
2016-07-31 20:56:53 +01:00
|
|
|
/// <summary>0x14, last booted</summary>
|
2018-01-06 00:41:14 +00:00
|
|
|
public short LastBoot;
|
2017-12-24 02:37:41 +00:00
|
|
|
/// <summary>0x16, tail to make record same size as <see cref="PascalFileEntry" /></summary>
|
2018-01-06 00:41:14 +00:00
|
|
|
public int Tail;
|
2016-07-31 20:56:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
struct PascalFileEntry
|
2016-07-31 20:55:58 +01:00
|
|
|
{
|
2016-07-31 20:56:53 +01:00
|
|
|
/// <summary>0x00, first block of file</summary>
|
2018-01-06 00:41:14 +00:00
|
|
|
public short FirstBlock;
|
2016-07-31 20:56:53 +01:00
|
|
|
/// <summary>0x02, last block of file</summary>
|
2018-01-06 00:41:14 +00:00
|
|
|
public short LastBlock;
|
2016-07-31 20:56:53 +01:00
|
|
|
/// <summary>0x04, entry type</summary>
|
2018-01-06 00:41:14 +00:00
|
|
|
public PascalFileKind EntryType;
|
2016-07-31 20:56:53 +01:00
|
|
|
/// <summary>0x06, file name</summary>
|
2018-01-06 00:41:14 +00:00
|
|
|
public byte[] Filename;
|
2016-07-31 20:56:53 +01:00
|
|
|
/// <summary>0x16, bytes used in last block</summary>
|
2018-01-06 00:41:14 +00:00
|
|
|
public short LastBytes;
|
2016-07-31 20:56:53 +01:00
|
|
|
/// <summary>0x18, modification time</summary>
|
2018-01-06 00:41:14 +00:00
|
|
|
public short ModificationTime;
|
2016-07-31 20:55:58 +01:00
|
|
|
}
|
|
|
|
|
}
|
2017-12-19 20:33:03 +00:00
|
|
|
}
|