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

@@ -47,18 +47,30 @@ namespace DiscImageChef.Filters
const uint AppleDoubleVersion = 0x00010000;
const uint AppleDoubleVersion2 = 0x00020000;
readonly byte[] DOSHome =
{0x4D, 0x53, 0x2D, 0x44, 0x4F, 0x53, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20};
{
0x4D, 0x53, 0x2D, 0x44, 0x4F, 0x53, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20
};
readonly byte[] MacintoshHome =
{0x4D, 0x61, 0x63, 0x69, 0x6E, 0x74, 0x6F, 0x73, 0x68, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20};
{
0x4D, 0x61, 0x63, 0x69, 0x6E, 0x74, 0x6F, 0x73, 0x68, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20
};
readonly byte[] OSXHome =
{0x4D, 0x61, 0x63, 0x20, 0x4F, 0x53, 0x20, 0x58, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20};
{
0x4D, 0x61, 0x63, 0x20, 0x4F, 0x53, 0x20, 0x58, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20
};
readonly byte[] ProDOSHome =
{0x50, 0x72, 0x6F, 0x44, 0x4F, 0x53, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20};
{
0x50, 0x72, 0x6F, 0x44, 0x4F, 0x53, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20
};
readonly byte[] UNIXHome =
{0x55, 0x6E, 0x69, 0x78, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20};
{
0x55, 0x6E, 0x69, 0x78, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20
};
readonly byte[] VMXHome =
{0x56, 0x41, 0x58, 0x20, 0x56, 0x4D, 0x53, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20};
{
0x56, 0x41, 0x58, 0x20, 0x56, 0x4D, 0x53, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20
};
string basePath;
DateTime creationTime;
@@ -69,63 +81,34 @@ namespace DiscImageChef.Filters
bool opened;
AppleDoubleEntry rsrcFork;
public string Name => "AppleDouble";
public Guid Id => new Guid("1B2165EE-C9DF-4B21-BBBB-9E5892B2DF4D");
public string Name => "AppleDouble";
public Guid Id => new Guid("1B2165EE-C9DF-4B21-BBBB-9E5892B2DF4D");
public string Author => "Natalia Portillo";
public void Close()
{
opened = false;
}
public string GetBasePath()
{
return basePath;
}
public string GetBasePath() => basePath;
public DateTime GetCreationTime()
{
return creationTime;
}
public DateTime GetCreationTime() => creationTime;
public long GetDataForkLength()
{
return dataFork.length;
}
public long GetDataForkLength() => dataFork.length;
public Stream GetDataForkStream()
{
return new FileStream(basePath, FileMode.Open, FileAccess.Read);
}
public Stream GetDataForkStream() => new FileStream(basePath, FileMode.Open, FileAccess.Read);
public string GetFilename()
{
return Path.GetFileName(basePath);
}
public string GetFilename() => Path.GetFileName(basePath);
public DateTime GetLastWriteTime()
{
return lastWriteTime;
}
public DateTime GetLastWriteTime() => lastWriteTime;
public long GetLength()
{
return dataFork.length + rsrcFork.length;
}
public long GetLength() => dataFork.length + rsrcFork.length;
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 rsrcFork.length;
}
public long GetResourceForkLength() => rsrcFork.length;
public Stream GetResourceForkStream()
{
@@ -135,22 +118,11 @@ namespace DiscImageChef.Filters
rsrcFork.offset + rsrcFork.length - 1);
}
public bool HasResourceFork()
{
return rsrcFork.length > 0;
}
public bool HasResourceFork() => rsrcFork.length > 0;
public bool Identify(byte[] buffer)
{
// Now way to have two files in a single byte array
return false;
}
public bool Identify(byte[] buffer) => false;
public bool Identify(Stream stream)
{
// Now way to have two files in a single stream
return false;
}
public bool Identify(Stream stream) => false;
public bool Identify(string path)
{
@@ -296,10 +268,7 @@ namespace DiscImageChef.Filters
(header.version == AppleDoubleVersion || header.version == AppleDoubleVersion2);
}
public bool IsOpened()
{
return opened;
}
public bool IsOpened() => opened;
public void Open(byte[] buffer)
{