Add "Author" field to plugins.

This commit is contained in:
2018-08-29 22:15:43 +01:00
parent bb359d88d3
commit abfc476e01
155 changed files with 937 additions and 980 deletions

View File

@@ -57,8 +57,9 @@ namespace DiscImageChef.Filters
long rsrcForkOff;
Stream stream;
public string Name => "MacBinary";
public Guid Id => new Guid("D7C321D3-E51F-45DF-A150-F6BFDF0D7704");
public string Name => "MacBinary";
public Guid Id => new Guid("D7C321D3-E51F-45DF-A150-F6BFDF0D7704");
public string Author => "Natalia Portillo";
public void Close()
{
@@ -70,20 +71,11 @@ namespace DiscImageChef.Filters
opened = false;
}
public string GetBasePath()
{
return basePath;
}
public string GetBasePath() => basePath;
public DateTime GetCreationTime()
{
return creationTime;
}
public DateTime GetCreationTime() => creationTime;
public long GetDataForkLength()
{
return header.dataLength;
}
public long GetDataForkLength() => header.dataLength;
public Stream GetDataForkStream()
{
@@ -98,35 +90,17 @@ namespace DiscImageChef.Filters
return null;
}
public string GetFilename()
{
return filename;
}
public string GetFilename() => filename;
public DateTime GetLastWriteTime()
{
return lastWriteTime;
}
public DateTime GetLastWriteTime() => lastWriteTime;
public long GetLength()
{
return header.dataLength + header.resourceLength;
}
public long GetLength() => header.dataLength + header.resourceLength;
public string GetParentFolder()
{
return Path.GetDirectoryName(basePath);
}
public string GetParentFolder() => Path.GetDirectoryName(basePath);
public string GetPath()
{
return basePath;
}
public string GetPath() => basePath;
public long GetResourceForkLength()
{
return header.resourceLength;
}
public long GetResourceForkLength() => header.resourceLength;
public Stream GetResourceForkStream()
{
@@ -141,10 +115,7 @@ namespace DiscImageChef.Filters
return null;
}
public bool HasResourceFork()
{
return header.resourceLength > 0;
}
public bool HasResourceFork() => header.resourceLength > 0;
public bool Identify(byte[] buffer)
{
@@ -191,10 +162,7 @@ namespace DiscImageChef.Filters
(header.dataLength > 0 || header.resourceLength > 0);
}
public bool IsOpened()
{
return opened;
}
public bool IsOpened() => opened;
public void Open(byte[] buffer)
{