mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Use Aaru Metadata instead of CICM Metadata.
This commit is contained in:
@@ -32,14 +32,14 @@
|
||||
|
||||
using System;
|
||||
using System.Text;
|
||||
using Aaru.CommonTypes;
|
||||
using Aaru.CommonTypes.AaruMetadata;
|
||||
using Aaru.CommonTypes.Enums;
|
||||
using Aaru.CommonTypes.Interfaces;
|
||||
using Aaru.Console;
|
||||
using Aaru.Helpers;
|
||||
using Claunia.Encoding;
|
||||
using Schemas;
|
||||
using Encoding = System.Text.Encoding;
|
||||
using Partition = Aaru.CommonTypes.Partition;
|
||||
|
||||
namespace Aaru.Filesystems;
|
||||
|
||||
@@ -202,15 +202,14 @@ public sealed partial class PascalPlugin
|
||||
|
||||
imagePlugin.ReadSectors(partition.Start, _multiplier * 2, out byte[] boot);
|
||||
|
||||
XmlFsType = new FileSystemType
|
||||
Metadata = new FileSystem
|
||||
{
|
||||
Bootable = !ArrayHelpers.ArrayIsNullOrEmpty(boot),
|
||||
Clusters = (ulong)volEntry.Blocks,
|
||||
ClusterSize = imagePlugin.Info.SectorSize,
|
||||
Files = (ulong)volEntry.Files,
|
||||
FilesSpecified = true,
|
||||
Type = FS_TYPE,
|
||||
VolumeName = StringHandlers.PascalToString(volEntry.VolumeName, Encoding)
|
||||
Bootable = !ArrayHelpers.ArrayIsNullOrEmpty(boot),
|
||||
Clusters = (ulong)volEntry.Blocks,
|
||||
ClusterSize = imagePlugin.Info.SectorSize,
|
||||
Files = (ulong)volEntry.Files,
|
||||
Type = FS_TYPE,
|
||||
VolumeName = StringHandlers.PascalToString(volEntry.VolumeName, Encoding)
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -32,14 +32,14 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Aaru.CommonTypes;
|
||||
using Aaru.CommonTypes.AaruMetadata;
|
||||
using Aaru.CommonTypes.Enums;
|
||||
using Aaru.CommonTypes.Interfaces;
|
||||
using Aaru.CommonTypes.Structs;
|
||||
using Aaru.Helpers;
|
||||
using Claunia.Encoding;
|
||||
using Schemas;
|
||||
using Encoding = System.Text.Encoding;
|
||||
using Partition = Aaru.CommonTypes.Partition;
|
||||
|
||||
namespace Aaru.Filesystems;
|
||||
|
||||
@@ -133,15 +133,14 @@ public sealed partial class PascalPlugin
|
||||
if(errno != ErrorNumber.NoError)
|
||||
return errno;
|
||||
|
||||
XmlFsType = new FileSystemType
|
||||
Metadata = new FileSystem
|
||||
{
|
||||
Bootable = !ArrayHelpers.ArrayIsNullOrEmpty(_bootBlocks),
|
||||
Clusters = (ulong)_mountedVolEntry.Blocks,
|
||||
ClusterSize = _device.Info.SectorSize,
|
||||
Files = (ulong)_mountedVolEntry.Files,
|
||||
FilesSpecified = true,
|
||||
Type = FS_TYPE,
|
||||
VolumeName = StringHandlers.PascalToString(_mountedVolEntry.VolumeName, Encoding)
|
||||
Bootable = !ArrayHelpers.ArrayIsNullOrEmpty(_bootBlocks),
|
||||
Clusters = (ulong)_mountedVolEntry.Blocks,
|
||||
ClusterSize = _device.Info.SectorSize,
|
||||
Files = (ulong)_mountedVolEntry.Files,
|
||||
Type = FS_TYPE,
|
||||
VolumeName = StringHandlers.PascalToString(_mountedVolEntry.VolumeName, Encoding)
|
||||
};
|
||||
|
||||
_mounted = true;
|
||||
|
||||
@@ -33,9 +33,9 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Aaru.CommonTypes.AaruMetadata;
|
||||
using Aaru.CommonTypes.Enums;
|
||||
using Aaru.CommonTypes.Interfaces;
|
||||
using Schemas;
|
||||
|
||||
namespace Aaru.Filesystems;
|
||||
|
||||
@@ -55,7 +55,7 @@ public sealed partial class PascalPlugin : IReadOnlyFilesystem
|
||||
uint _multiplier;
|
||||
|
||||
/// <inheritdoc />
|
||||
public FileSystemType XmlFsType { get; private set; }
|
||||
public FileSystem Metadata { get; private set; }
|
||||
/// <inheritdoc />
|
||||
public string Name => Localization.PascalPlugin_Name;
|
||||
/// <inheritdoc />
|
||||
|
||||
Reference in New Issue
Block a user