2020-02-27 00:33:26 +00:00
|
|
|
using Aaru.Helpers;
|
2019-08-01 23:37:21 +01:00
|
|
|
|
2020-02-27 00:33:26 +00:00
|
|
|
namespace Aaru.Filesystems
|
2019-08-01 16:21:10 +01:00
|
|
|
{
|
2019-08-01 17:00:30 +01:00
|
|
|
public partial class OperaFS
|
|
|
|
|
{
|
|
|
|
|
const string SYNC = "ZZZZZ";
|
|
|
|
|
const uint FLAGS_MASK = 0xFF;
|
|
|
|
|
const int MAX_NAME = 32;
|
|
|
|
|
|
2020-02-29 18:03:35 +00:00
|
|
|
/// <summary>Directory</summary>
|
2019-08-01 17:00:30 +01:00
|
|
|
const uint TYPE_DIR = 0x2A646972;
|
2020-02-29 18:03:35 +00:00
|
|
|
/// <summary>Disc label</summary>
|
2019-08-01 17:00:30 +01:00
|
|
|
const uint TYPE_LBL = 0x2A6C626C;
|
2020-02-29 18:03:35 +00:00
|
|
|
/// <summary>Catapult</summary>
|
2019-08-01 17:00:30 +01:00
|
|
|
const uint TYPE_ZAP = 0x2A7A6170;
|
2019-08-01 23:37:21 +01:00
|
|
|
static readonly int DirectoryEntrySize = Marshal.SizeOf<DirectoryEntry>();
|
2019-08-01 17:00:30 +01:00
|
|
|
|
|
|
|
|
enum FileFlags : uint
|
|
|
|
|
{
|
2020-02-29 18:03:35 +00:00
|
|
|
File = 2, Special = 6, Directory = 7,
|
|
|
|
|
LastEntryInBlock = 0x40000000, LastEntry = 0x80000000
|
2019-08-01 17:00:30 +01:00
|
|
|
}
|
|
|
|
|
}
|
2019-08-01 16:21:10 +01:00
|
|
|
}
|