mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
🎨REFACTOR: Plugins do not need to expose their methods as virtual.
This commit is contained in:
@@ -43,10 +43,10 @@ namespace DiscImageChef.Filesystems.ISO9660
|
||||
{
|
||||
Encoding currentEncoding;
|
||||
FileSystemType xmlFsType;
|
||||
public virtual FileSystemType XmlFsType => xmlFsType;
|
||||
public FileSystemType XmlFsType => xmlFsType;
|
||||
|
||||
public virtual Encoding Encoding => currentEncoding;
|
||||
public virtual string Name => "ISO9660 Filesystem";
|
||||
public virtual Guid Id => new Guid("d812f4d3-c357-400d-90fd-3b22ef786aa8");
|
||||
public Encoding Encoding => currentEncoding;
|
||||
public string Name => "ISO9660 Filesystem";
|
||||
public Guid Id => new Guid("d812f4d3-c357-400d-90fd-3b22ef786aa8");
|
||||
}
|
||||
}
|
||||
@@ -45,7 +45,7 @@ namespace DiscImageChef.Filesystems.ISO9660
|
||||
{
|
||||
public partial class ISO9660
|
||||
{
|
||||
public virtual bool Identify(IMediaImage imagePlugin, Partition partition)
|
||||
public bool Identify(IMediaImage imagePlugin, Partition partition)
|
||||
{
|
||||
// ISO9660 is designed for 2048 bytes/sector devices
|
||||
if(imagePlugin.Info.SectorSize < 2048) return false;
|
||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Filesystems.ISO9660
|
||||
Encoding.ASCII.GetString(vdMagic) == CDI_MAGIC;
|
||||
}
|
||||
|
||||
public virtual void GetInformation(IMediaImage imagePlugin, Partition partition, out string information, Encoding encoding)
|
||||
public void GetInformation(IMediaImage imagePlugin, Partition partition, out string information, Encoding encoding)
|
||||
{
|
||||
currentEncoding = encoding ?? Encoding.ASCII;
|
||||
information = "";
|
||||
|
||||
Reference in New Issue
Block a user