mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
* DiscImageChef.Filesystems/Structs.cs:
Added structs for filesystem entries information. * DiscImageChef/Plugins.cs: * DiscImageChef.Filesystems/FFS.cs: * DiscImageChef.Filesystems/FAT.cs: * DiscImageChef.Filesystems/ODS.cs: * DiscImageChef.Filesystems/BFS.cs: * DiscImageChef.Filesystems/NTFS.cs: * DiscImageChef/Commands/Formats.cs: * DiscImageChef.Filesystems/APFS.cs: * DiscImageChef.Filesystems/HPFS.cs: * DiscImageChef/Commands/Analyze.cs: * DiscImageChef.Filesystems/SysV.cs: * DiscImageChef.Filesystems/Acorn.cs: * DiscImageChef.Filesystems/Opera.cs: * DiscImageChef.Filesystems/extFS.cs: * DiscImageChef.Filesystems/BTRFS.cs: * DiscImageChef/Commands/DumpMedia.cs: * DiscImageChef.Filesystems/ProDOS.cs: * DiscImageChef.Filesystems/LisaFS.cs: * DiscImageChef.Filesystems/ext2FS.cs: * DiscImageChef.Filesystems/MinixFS.cs: * DiscImageChef.Filesystems/ISO9660.cs: * DiscImageChef.Filesystems/SolarFS.cs: * DiscImageChef.Filesystems/UNIXBFS.cs: * DiscImageChef.Filesystems/AmigaDOS.cs: * DiscImageChef.Filesystems/AppleHFS.cs: * DiscImageChef.Filesystems/PCEngine.cs: * DiscImageChef.Filesystems/AppleMFS.cs: * DiscImageChef.Filesystems/Nintendo.cs: * DiscImageChef/Commands/CreateSidecar.cs: * DiscImageChef.Filesystems/Filesystem.cs: * DiscImageChef.Filesystems/AppleHFSPlus.cs: Refactored filesystem plugin class name. * DiscImageChef.Filesystems/DiscImageChef.Filesystems.csproj: Refactored filesystem plugin class name. Added structs for filesystem entries information.
This commit is contained in:
@@ -41,20 +41,20 @@ using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using DiscImageChef.ImagePlugins;
|
||||
using DiscImageChef.PartPlugins;
|
||||
using DiscImageChef.Plugins;
|
||||
using DiscImageChef.Filesystems;
|
||||
using DiscImageChef.Console;
|
||||
|
||||
namespace DiscImageChef
|
||||
{
|
||||
public class PluginBase
|
||||
{
|
||||
public Dictionary<string, Plugin> PluginsList;
|
||||
public Dictionary<string, Filesystem> PluginsList;
|
||||
public Dictionary<string, PartPlugin> PartPluginsList;
|
||||
public Dictionary<string, ImagePlugin> ImagePluginsList;
|
||||
|
||||
public PluginBase()
|
||||
{
|
||||
PluginsList = new Dictionary<string, Plugin>();
|
||||
PluginsList = new Dictionary<string, Filesystem>();
|
||||
PartPluginsList = new Dictionary<string, PartPlugin>();
|
||||
ImagePluginsList = new Dictionary<string, ImagePlugin>();
|
||||
}
|
||||
@@ -99,15 +99,15 @@ namespace DiscImageChef
|
||||
}
|
||||
}
|
||||
|
||||
assembly = Assembly.GetAssembly(typeof(Plugin));
|
||||
assembly = Assembly.GetAssembly(typeof(Filesystem));
|
||||
|
||||
foreach (Type type in assembly.GetTypes())
|
||||
{
|
||||
try
|
||||
{
|
||||
if (type.IsSubclassOf(typeof(Plugin)))
|
||||
if (type.IsSubclassOf(typeof(Filesystem)))
|
||||
{
|
||||
Plugin plugin = (Plugin)type.GetConstructor(Type.EmptyTypes).Invoke(new object[] { });
|
||||
Filesystem plugin = (Filesystem)type.GetConstructor(Type.EmptyTypes).Invoke(new object[] { });
|
||||
RegisterPlugin(plugin);
|
||||
}
|
||||
}
|
||||
@@ -126,7 +126,7 @@ namespace DiscImageChef
|
||||
}
|
||||
}
|
||||
|
||||
void RegisterPlugin(Plugin plugin)
|
||||
void RegisterPlugin(Filesystem plugin)
|
||||
{
|
||||
if (!PluginsList.ContainsKey(plugin.Name.ToLower()))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user