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:
@@ -37,7 +37,7 @@ Copyright (C) 2011-2014 Claunia.com
|
||||
//$Id$
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using DiscImageChef.Plugins;
|
||||
using DiscImageChef.Filesystems;
|
||||
using DiscImageChef.ImagePlugins;
|
||||
using DiscImageChef.PartPlugins;
|
||||
using DiscImageChef.Console;
|
||||
@@ -64,7 +64,7 @@ namespace DiscImageChef.Commands
|
||||
plugins.RegisterAllPlugins();
|
||||
|
||||
List<string> id_plugins;
|
||||
Plugin _plugin;
|
||||
Filesystem _plugin;
|
||||
string information;
|
||||
bool checkraw = false;
|
||||
ImagePlugin _imageFormat;
|
||||
@@ -239,7 +239,7 @@ namespace DiscImageChef.Commands
|
||||
PluginBase plugins = new PluginBase();
|
||||
plugins.RegisterAllPlugins();
|
||||
|
||||
foreach(Plugin _plugin in plugins.PluginsList.Values)
|
||||
foreach(Filesystem _plugin in plugins.PluginsList.Values)
|
||||
{
|
||||
if(_plugin.Identify(imagePlugin, partitionStart, partitionEnd))
|
||||
id_plugins.Add(_plugin.Name.ToLower());
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
using System;
|
||||
using Schemas;
|
||||
using System.Collections.Generic;
|
||||
using DiscImageChef.Plugins;
|
||||
using DiscImageChef.Filesystems;
|
||||
using DiscImageChef.ImagePlugins;
|
||||
using DiscImageChef.Console;
|
||||
using DiscImageChef.Checksums;
|
||||
@@ -525,7 +525,7 @@ namespace DiscImageChef.Commands
|
||||
|
||||
List<FileSystemType> lstFs = new List<FileSystemType>();
|
||||
|
||||
foreach(Plugin _plugin in plugins.PluginsList.Values)
|
||||
foreach(Filesystem _plugin in plugins.PluginsList.Values)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -564,7 +564,7 @@ namespace DiscImageChef.Commands
|
||||
|
||||
List<FileSystemType> lstFs = new List<FileSystemType>();
|
||||
|
||||
foreach(Plugin _plugin in plugins.PluginsList.Values)
|
||||
foreach(Filesystem _plugin in plugins.PluginsList.Values)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -730,7 +730,7 @@ namespace DiscImageChef.Commands
|
||||
|
||||
List<FileSystemType> lstFs = new List<FileSystemType>();
|
||||
|
||||
foreach(Plugin _plugin in plugins.PluginsList.Values)
|
||||
foreach(Filesystem _plugin in plugins.PluginsList.Values)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -760,7 +760,7 @@ namespace DiscImageChef.Commands
|
||||
|
||||
List<FileSystemType> lstFs = new List<FileSystemType>();
|
||||
|
||||
foreach(Plugin _plugin in plugins.PluginsList.Values)
|
||||
foreach(Filesystem _plugin in plugins.PluginsList.Values)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
@@ -44,7 +44,7 @@ using Schemas;
|
||||
using DiscImageChef.CommonTypes;
|
||||
using DiscImageChef.ImagePlugins;
|
||||
using DiscImageChef.PartPlugins;
|
||||
using DiscImageChef.Plugins;
|
||||
using DiscImageChef.Filesystems;
|
||||
|
||||
namespace DiscImageChef.Commands
|
||||
{
|
||||
@@ -783,7 +783,7 @@ namespace DiscImageChef.Commands
|
||||
|
||||
List<FileSystemType> lstFs = new List<FileSystemType>();
|
||||
|
||||
foreach(Plugin _plugin in plugins.PluginsList.Values)
|
||||
foreach(Filesystem _plugin in plugins.PluginsList.Values)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -814,7 +814,7 @@ namespace DiscImageChef.Commands
|
||||
|
||||
List<FileSystemType> lstFs = new List<FileSystemType>();
|
||||
|
||||
foreach(Plugin _plugin in plugins.PluginsList.Values)
|
||||
foreach(Filesystem _plugin in plugins.PluginsList.Values)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -2976,7 +2976,7 @@ namespace DiscImageChef.Commands
|
||||
|
||||
List<FileSystemType> lstFs = new List<FileSystemType>();
|
||||
|
||||
foreach(Plugin _plugin in plugins.PluginsList.Values)
|
||||
foreach(Filesystem _plugin in plugins.PluginsList.Values)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -3016,7 +3016,7 @@ namespace DiscImageChef.Commands
|
||||
|
||||
List<FileSystemType> lstFs = new List<FileSystemType>();
|
||||
|
||||
foreach(Plugin _plugin in plugins.PluginsList.Values)
|
||||
foreach(Filesystem _plugin in plugins.PluginsList.Values)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
@@ -39,7 +39,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using DiscImageChef.ImagePlugins;
|
||||
using DiscImageChef.PartPlugins;
|
||||
using DiscImageChef.Plugins;
|
||||
using DiscImageChef.Filesystems;
|
||||
using DiscImageChef.Console;
|
||||
|
||||
namespace DiscImageChef.Commands
|
||||
@@ -65,7 +65,7 @@ namespace DiscImageChef.Commands
|
||||
DicConsole.WriteLine("Supported filesystems:");
|
||||
if(FormatsOptions.Verbose)
|
||||
DicConsole.VerboseWriteLine("GUID\t\t\t\t\tPlugin");
|
||||
foreach(KeyValuePair<string, Plugin> kvp in plugins.PluginsList)
|
||||
foreach(KeyValuePair<string, Filesystem> kvp in plugins.PluginsList)
|
||||
{
|
||||
if(FormatsOptions.Verbose)
|
||||
DicConsole.VerboseWriteLine("{0}\t{1}", kvp.Value.PluginUUID, kvp.Value.Name);
|
||||
|
||||
@@ -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