mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
🎨REFACTOR: Plugins do not need to expose their methods as virtual.
This commit is contained in:
@@ -39,7 +39,7 @@ namespace DiscImageChef.Filesystems.UCSDPascal
|
||||
// Information from Call-A.P.P.L.E. Pascal Disk Directory Structure
|
||||
public partial class PascalPlugin
|
||||
{
|
||||
public virtual Errno ReadDir(string path, ref List<string> contents)
|
||||
public Errno ReadDir(string path, ref List<string> contents)
|
||||
{
|
||||
if(!mounted) return Errno.AccessDenied;
|
||||
|
||||
|
||||
@@ -38,12 +38,12 @@ namespace DiscImageChef.Filesystems.UCSDPascal
|
||||
// Information from Call-A.P.P.L.E. Pascal Disk Directory Structure
|
||||
public partial class PascalPlugin
|
||||
{
|
||||
public virtual Errno MapBlock(string path, long fileBlock, ref long deviceBlock)
|
||||
public Errno MapBlock(string path, long fileBlock, ref long deviceBlock)
|
||||
{
|
||||
return !mounted ? Errno.AccessDenied : Errno.NotImplemented;
|
||||
}
|
||||
|
||||
public virtual Errno GetAttributes(string path, ref FileAttributes attributes)
|
||||
public Errno GetAttributes(string path, ref FileAttributes attributes)
|
||||
{
|
||||
if(!mounted) return Errno.AccessDenied;
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace DiscImageChef.Filesystems.UCSDPascal
|
||||
return error;
|
||||
}
|
||||
|
||||
public virtual Errno Read(string path, long offset, long size, ref byte[] buf)
|
||||
public Errno Read(string path, long offset, long size, ref byte[] buf)
|
||||
{
|
||||
if(!mounted) return Errno.AccessDenied;
|
||||
|
||||
@@ -95,7 +95,7 @@ namespace DiscImageChef.Filesystems.UCSDPascal
|
||||
return Errno.NoError;
|
||||
}
|
||||
|
||||
public virtual Errno Stat(string path, ref FileEntryInfo stat)
|
||||
public Errno Stat(string path, ref FileEntryInfo stat)
|
||||
{
|
||||
if(!mounted) return Errno.AccessDenied;
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace DiscImageChef.Filesystems.UCSDPascal
|
||||
// Information from Call-A.P.P.L.E. Pascal Disk Directory Structure
|
||||
public partial class PascalPlugin
|
||||
{
|
||||
public virtual bool Identify(IMediaImage imagePlugin, Partition partition)
|
||||
public bool Identify(IMediaImage imagePlugin, Partition partition)
|
||||
{
|
||||
if(partition.Length < 3) return false;
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace DiscImageChef.Filesystems.UCSDPascal
|
||||
return volEntry.files >= 0;
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
StringBuilder sbInformation = new StringBuilder();
|
||||
information = "";
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace DiscImageChef.Filesystems.UCSDPascal
|
||||
// Information from Call-A.P.P.L.E. Pascal Disk Directory Structure
|
||||
public partial class PascalPlugin
|
||||
{
|
||||
public virtual Errno Mount(IMediaImage imagePlugin, Partition partition, Encoding encoding, bool debug)
|
||||
public Errno Mount(IMediaImage imagePlugin, Partition partition, Encoding encoding, bool debug)
|
||||
{
|
||||
device = imagePlugin;
|
||||
// TODO: Until Apple ][ encoding is implemented
|
||||
@@ -114,14 +114,14 @@ namespace DiscImageChef.Filesystems.UCSDPascal
|
||||
return Errno.NoError;
|
||||
}
|
||||
|
||||
public virtual Errno Unmount()
|
||||
public Errno Unmount()
|
||||
{
|
||||
mounted = false;
|
||||
fileEntries = null;
|
||||
return Errno.NoError;
|
||||
}
|
||||
|
||||
public virtual Errno StatFs(ref FileSystemInfo stat)
|
||||
public Errno StatFs(ref FileSystemInfo stat)
|
||||
{
|
||||
stat = new FileSystemInfo
|
||||
{
|
||||
|
||||
@@ -51,25 +51,25 @@ namespace DiscImageChef.Filesystems.UCSDPascal
|
||||
List<PascalFileEntry> fileEntries;
|
||||
bool mounted;
|
||||
FileSystemType xmlFsType;
|
||||
public virtual FileSystemType XmlFsType => xmlFsType;
|
||||
public FileSystemType XmlFsType => xmlFsType;
|
||||
|
||||
PascalVolumeEntry mountedVolEntry;
|
||||
|
||||
public virtual string Name => "U.C.S.D. Pascal filesystem";
|
||||
public virtual Guid Id => new Guid("B0AC2CB5-72AA-473A-9200-270B5A2C2D53");
|
||||
public virtual Encoding Encoding => currentEncoding;
|
||||
public string Name => "U.C.S.D. Pascal filesystem";
|
||||
public Guid Id => new Guid("B0AC2CB5-72AA-473A-9200-270B5A2C2D53");
|
||||
public Encoding Encoding => currentEncoding;
|
||||
|
||||
public virtual Errno ListXAttr(string path, ref List<string> xattrs)
|
||||
public Errno ListXAttr(string path, ref List<string> xattrs)
|
||||
{
|
||||
return Errno.NotSupported;
|
||||
}
|
||||
|
||||
public virtual Errno GetXattr(string path, string xattr, ref byte[] buf)
|
||||
public Errno GetXattr(string path, string xattr, ref byte[] buf)
|
||||
{
|
||||
return Errno.NotSupported;
|
||||
}
|
||||
|
||||
public virtual Errno ReadLink(string path, ref string dest)
|
||||
public Errno ReadLink(string path, ref string dest)
|
||||
{
|
||||
return Errno.NotSupported;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user