mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
General cleanup and refactor.
This commit is contained in:
@@ -30,6 +30,13 @@
|
||||
// Copyright © 2011-2022 Natalia Portillo
|
||||
// ****************************************************************************/
|
||||
|
||||
|
||||
|
||||
// ReSharper disable UnusedType.Local
|
||||
// ReSharper disable UnusedMember.Local
|
||||
|
||||
namespace Aaru.Filesystems;
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
@@ -39,11 +46,6 @@ using Aaru.CommonTypes.Interfaces;
|
||||
using Schemas;
|
||||
using Marshal = Aaru.Helpers.Marshal;
|
||||
|
||||
// ReSharper disable UnusedType.Local
|
||||
// ReSharper disable UnusedMember.Local
|
||||
|
||||
namespace Aaru.Filesystems;
|
||||
|
||||
/// <inheritdoc />
|
||||
/// <summary>
|
||||
/// Implements detection for the MicroDOS filesystem. Information from http://www.owg.ru/mkt/BK/MKDOS.TXT Thanks
|
||||
@@ -85,8 +87,7 @@ public sealed class MicroDOS : IFilesystem
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public void GetInformation(IMediaImage imagePlugin, Partition partition, out string information,
|
||||
Encoding encoding)
|
||||
public void GetInformation(IMediaImage imagePlugin, Partition partition, out string information, Encoding encoding)
|
||||
{
|
||||
Encoding = encoding ?? Encoding.GetEncoding("koi8-r");
|
||||
information = "";
|
||||
@@ -178,7 +179,10 @@ public sealed class MicroDOS : IFilesystem
|
||||
|
||||
enum FileStatus : byte
|
||||
{
|
||||
CommonFile = 0, Protected = 1, LogicalDisk = 2,
|
||||
BadFile = 0x80, Deleted = 0xFF
|
||||
CommonFile = 0,
|
||||
Protected = 1,
|
||||
LogicalDisk = 2,
|
||||
BadFile = 0x80,
|
||||
Deleted = 0xFF
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user