mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Added filter for PCExchange files.
This commit is contained in:
@@ -67,19 +67,27 @@ namespace DiscImageChef.Filters
|
||||
|
||||
public Filter GetFilter(string path)
|
||||
{
|
||||
Filter noFilter = null;
|
||||
|
||||
foreach(Filter filter in filtersList.Values)
|
||||
{
|
||||
if(filter.Identify(path))
|
||||
if(filter.UUID != new Guid("12345678-AAAA-BBBB-CCCC-123456789000"))
|
||||
{
|
||||
Filter foundFilter = (Filter)filter.GetType().GetConstructor(Type.EmptyTypes).Invoke(new object[] { });
|
||||
foundFilter.Open(path);
|
||||
System.Console.WriteLine("Trying filter {0}", filter.Name);
|
||||
if(filter.Identify(path))
|
||||
{
|
||||
Filter foundFilter = (Filter)filter.GetType().GetConstructor(Type.EmptyTypes).Invoke(new object[] { });
|
||||
foundFilter.Open(path);
|
||||
|
||||
if(foundFilter.IsOpened())
|
||||
return foundFilter;
|
||||
if(foundFilter.IsOpened())
|
||||
return foundFilter;
|
||||
}
|
||||
}
|
||||
else
|
||||
noFilter = filter;
|
||||
}
|
||||
|
||||
return null;
|
||||
return noFilter;
|
||||
}
|
||||
|
||||
public SortedDictionary<string, Filter> GetFiltersList()
|
||||
|
||||
Reference in New Issue
Block a user