mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Make Encoding a private field only for IReadOnlyFilesystem implementors.
This commit is contained in:
@@ -27,7 +27,6 @@
|
||||
// ****************************************************************************/
|
||||
|
||||
using System;
|
||||
using System.Text;
|
||||
using Aaru.CommonTypes.Interfaces;
|
||||
|
||||
namespace Aaru.Filesystems;
|
||||
@@ -41,7 +40,5 @@ public sealed partial class CBM : IFilesystem
|
||||
/// <inheritdoc />
|
||||
public Guid Id => new("D104744E-A376-450C-BAC0-1347C93F983B");
|
||||
/// <inheritdoc />
|
||||
public Encoding Encoding { get; private set; }
|
||||
/// <inheritdoc />
|
||||
public string Author => Authors.NataliaPortillo;
|
||||
}
|
||||
@@ -92,7 +92,7 @@ public sealed partial class CBM
|
||||
public void GetInformation(IMediaImage imagePlugin, Partition partition, Encoding encoding, out string information,
|
||||
out FileSystem metadata)
|
||||
{
|
||||
Encoding = new PETSCII();
|
||||
encoding = new PETSCII();
|
||||
information = "";
|
||||
byte[] sector;
|
||||
|
||||
@@ -136,10 +136,10 @@ public sealed partial class CBM
|
||||
|
||||
sbInformation.AppendFormat(Localization.Disk_ID_0, cbmHdr.diskId).AppendLine();
|
||||
|
||||
sbInformation.AppendFormat(Localization.Disk_name_0, StringHandlers.CToString(cbmHdr.name, Encoding)).
|
||||
sbInformation.AppendFormat(Localization.Disk_name_0, StringHandlers.CToString(cbmHdr.name, encoding)).
|
||||
AppendLine();
|
||||
|
||||
metadata.VolumeName = StringHandlers.CToString(cbmHdr.name, Encoding);
|
||||
metadata.VolumeName = StringHandlers.CToString(cbmHdr.name, encoding);
|
||||
metadata.VolumeSerial = $"{cbmHdr.diskId}";
|
||||
}
|
||||
else
|
||||
@@ -164,10 +164,10 @@ public sealed partial class CBM
|
||||
|
||||
sbInformation.AppendFormat(Localization.Disk_ID_0, cbmBam.diskId).AppendLine();
|
||||
|
||||
sbInformation.AppendFormat(Localization.Disk_name_0, StringHandlers.CToString(cbmBam.name, Encoding)).
|
||||
sbInformation.AppendFormat(Localization.Disk_name_0, StringHandlers.CToString(cbmBam.name, encoding)).
|
||||
AppendLine();
|
||||
|
||||
metadata.VolumeName = StringHandlers.CToString(cbmBam.name, Encoding);
|
||||
metadata.VolumeName = StringHandlers.CToString(cbmBam.name, encoding);
|
||||
metadata.VolumeSerial = $"{cbmBam.diskId}";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user