mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[Aaru.Filesystems] Reformat and cleanup.
This commit is contained in:
@@ -38,9 +38,16 @@ namespace Aaru.Filesystems;
|
||||
/// </summary>
|
||||
public sealed partial class MicroDOS
|
||||
{
|
||||
#region Nested type: FileStatus
|
||||
|
||||
enum FileStatus : byte
|
||||
{
|
||||
CommonFile = 0, Protected = 1, LogicalDisk = 2,
|
||||
BadFile = 0x80, Deleted = 0xFF
|
||||
CommonFile = 0,
|
||||
Protected = 1,
|
||||
LogicalDisk = 2,
|
||||
BadFile = 0x80,
|
||||
Deleted = 0xFF
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
@@ -45,6 +45,8 @@ namespace Aaru.Filesystems;
|
||||
/// </summary>
|
||||
public sealed partial class MicroDOS
|
||||
{
|
||||
#region IFilesystem Members
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool Identify(IMediaImage imagePlugin, Partition partition)
|
||||
{
|
||||
@@ -87,7 +89,7 @@ public sealed partial class MicroDOS
|
||||
AppendLine();
|
||||
|
||||
sb.AppendFormat(Localization.Volume_contains_0_files, block0.files).AppendLine();
|
||||
sb.AppendFormat(Localization.First_used_block_is_0, block0.firstUsedBlock).AppendLine();
|
||||
sb.AppendFormat(Localization.First_used_block_is_0, block0.firstUsedBlock).AppendLine();
|
||||
|
||||
metadata = new FileSystem
|
||||
{
|
||||
@@ -100,4 +102,6 @@ public sealed partial class MicroDOS
|
||||
|
||||
information = sb.ToString();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
@@ -41,10 +41,16 @@ namespace Aaru.Filesystems;
|
||||
/// </summary>
|
||||
public sealed partial class MicroDOS : IFilesystem
|
||||
{
|
||||
#region IFilesystem Members
|
||||
|
||||
/// <inheritdoc />
|
||||
public string Name => Localization.MicroDOS_Name;
|
||||
|
||||
/// <inheritdoc />
|
||||
public Guid Id => new("9F9A364A-1A27-48A3-B730-7A7122000324");
|
||||
|
||||
/// <inheritdoc />
|
||||
public string Author => Authors.NataliaPortillo;
|
||||
|
||||
#endregion
|
||||
}
|
||||
@@ -40,6 +40,8 @@ namespace Aaru.Filesystems;
|
||||
/// </summary>
|
||||
public sealed partial class MicroDOS
|
||||
{
|
||||
#region Nested type: Block0
|
||||
|
||||
// Followed by directory entries
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
readonly struct Block0
|
||||
@@ -73,6 +75,10 @@ public sealed partial class MicroDOS
|
||||
public readonly byte[] unknown3;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Nested type: DirectoryEntry
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
readonly struct DirectoryEntry
|
||||
{
|
||||
@@ -92,4 +98,6 @@ public sealed partial class MicroDOS
|
||||
/// <summary>Length</summary>
|
||||
public readonly ushort length;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user