mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Adjusted to new API.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
* Commands/Ls.cs:
|
||||||
|
* Commands/ExtractFiles.cs:
|
||||||
|
Adjusted to new API.
|
||||||
|
|
||||||
* Commands/Ls.cs:
|
* Commands/Ls.cs:
|
||||||
* Commands/Analyze.cs:
|
* Commands/Analyze.cs:
|
||||||
* Commands/ExtractFiles.cs:
|
* Commands/ExtractFiles.cs:
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ namespace DiscImageChef.Commands
|
|||||||
if(plugins.PluginsList.TryGetValue(plugin_name, out _plugin))
|
if(plugins.PluginsList.TryGetValue(plugin_name, out _plugin))
|
||||||
{
|
{
|
||||||
DicConsole.WriteLine(string.Format("As identified by {0}.", _plugin.Name));
|
DicConsole.WriteLine(string.Format("As identified by {0}.", _plugin.Name));
|
||||||
Filesystem fs = (Filesystem)_plugin.GetType().GetConstructor(new Type[] { typeof(ImagePlugin), typeof(ulong), typeof(ulong), typeof(System.Text.Encoding) }).Invoke(new object[] { _imageFormat, partitions[i].Start, partitions[i].Start + partitions[i].Length, null });
|
Filesystem fs = (Filesystem)_plugin.GetType().GetConstructor(new Type[] { typeof(ImagePlugin), typeof(Partition), typeof(System.Text.Encoding) }).Invoke(new object[] { _imageFormat, partitions[i], null });
|
||||||
|
|
||||||
error = fs.Mount(options.Debug);
|
error = fs.Mount(options.Debug);
|
||||||
if(error == Errno.NoError)
|
if(error == Errno.NoError)
|
||||||
@@ -193,7 +193,7 @@ namespace DiscImageChef.Commands
|
|||||||
{
|
{
|
||||||
plugins.PluginsList.TryGetValue(id_plugins[0], out _plugin);
|
plugins.PluginsList.TryGetValue(id_plugins[0], out _plugin);
|
||||||
DicConsole.WriteLine(string.Format("Identified by {0}.", _plugin.Name));
|
DicConsole.WriteLine(string.Format("Identified by {0}.", _plugin.Name));
|
||||||
Filesystem fs = (Filesystem)_plugin.GetType().GetConstructor(new Type[] { typeof(ImagePlugin), typeof(ulong), typeof(ulong), typeof(System.Text.Encoding) }).Invoke(new object[] { _imageFormat, partitions[i].Start, partitions[i].Start + partitions[i].Length, null });
|
Filesystem fs = (Filesystem)_plugin.GetType().GetConstructor(new Type[] { typeof(ImagePlugin), typeof(Partition), typeof(System.Text.Encoding) }).Invoke(new object[] { _imageFormat, partitions[i], null });
|
||||||
error = fs.Mount(options.Debug);
|
error = fs.Mount(options.Debug);
|
||||||
if(error == Errno.NoError)
|
if(error == Errno.NoError)
|
||||||
{
|
{
|
||||||
@@ -234,7 +234,7 @@ namespace DiscImageChef.Commands
|
|||||||
if(plugins.PluginsList.TryGetValue(plugin_name, out _plugin))
|
if(plugins.PluginsList.TryGetValue(plugin_name, out _plugin))
|
||||||
{
|
{
|
||||||
DicConsole.WriteLine(string.Format("As identified by {0}.", _plugin.Name));
|
DicConsole.WriteLine(string.Format("As identified by {0}.", _plugin.Name));
|
||||||
Filesystem fs = (Filesystem)_plugin.GetType().GetConstructor(new Type[] { typeof(ImagePlugin), typeof(ulong), typeof(ulong), typeof(System.Text.Encoding) }).Invoke(new object[] { _imageFormat, (ulong)0, _imageFormat.GetSectors() - 1, null });
|
Filesystem fs = (Filesystem)_plugin.GetType().GetConstructor(new Type[] { typeof(ImagePlugin), typeof(Partition), typeof(System.Text.Encoding) }).Invoke(new object[] { _imageFormat, wholePart, null });
|
||||||
error = fs.Mount(options.Debug);
|
error = fs.Mount(options.Debug);
|
||||||
if(error == Errno.NoError)
|
if(error == Errno.NoError)
|
||||||
{
|
{
|
||||||
@@ -259,7 +259,7 @@ namespace DiscImageChef.Commands
|
|||||||
{
|
{
|
||||||
plugins.PluginsList.TryGetValue(id_plugins[0], out _plugin);
|
plugins.PluginsList.TryGetValue(id_plugins[0], out _plugin);
|
||||||
DicConsole.WriteLine(string.Format("Identified by {0}.", _plugin.Name));
|
DicConsole.WriteLine(string.Format("Identified by {0}.", _plugin.Name));
|
||||||
Filesystem fs = (Filesystem)_plugin.GetType().GetConstructor(new Type[] { typeof(ImagePlugin), typeof(ulong), typeof(ulong), typeof(System.Text.Encoding) }).Invoke(new object[] { _imageFormat, (ulong)0, _imageFormat.GetSectors() - 1, null });
|
Filesystem fs = (Filesystem)_plugin.GetType().GetConstructor(new Type[] { typeof(ImagePlugin), typeof(Partition), typeof(System.Text.Encoding) }).Invoke(new object[] { _imageFormat, wholePart, null });
|
||||||
error = fs.Mount(options.Debug);
|
error = fs.Mount(options.Debug);
|
||||||
if(error == Errno.NoError)
|
if(error == Errno.NoError)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ namespace DiscImageChef.Commands
|
|||||||
if(plugins.PluginsList.TryGetValue(plugin_name, out _plugin))
|
if(plugins.PluginsList.TryGetValue(plugin_name, out _plugin))
|
||||||
{
|
{
|
||||||
DicConsole.WriteLine(string.Format("As identified by {0}.", _plugin.Name));
|
DicConsole.WriteLine(string.Format("As identified by {0}.", _plugin.Name));
|
||||||
Filesystem fs = (Filesystem)_plugin.GetType().GetConstructor(new Type[] { typeof(ImagePlugin), typeof(ulong), typeof(ulong), typeof(System.Text.Encoding) }).Invoke(new object[] { _imageFormat, partitions[i].Start, partitions[i].Start + partitions[i].Length, null });
|
Filesystem fs = (Filesystem)_plugin.GetType().GetConstructor(new Type[] { typeof(ImagePlugin), typeof(Partition), typeof(System.Text.Encoding) }).Invoke(new object[] { _imageFormat, partitions[i], null });
|
||||||
|
|
||||||
error = fs.Mount(options.Debug);
|
error = fs.Mount(options.Debug);
|
||||||
if(error == Errno.NoError)
|
if(error == Errno.NoError)
|
||||||
@@ -182,7 +182,7 @@ namespace DiscImageChef.Commands
|
|||||||
{
|
{
|
||||||
plugins.PluginsList.TryGetValue(id_plugins[0], out _plugin);
|
plugins.PluginsList.TryGetValue(id_plugins[0], out _plugin);
|
||||||
DicConsole.WriteLine(string.Format("Identified by {0}.", _plugin.Name));
|
DicConsole.WriteLine(string.Format("Identified by {0}.", _plugin.Name));
|
||||||
Filesystem fs = (Filesystem)_plugin.GetType().GetConstructor(new Type[] { typeof(ImagePlugin), typeof(ulong), typeof(ulong), typeof(System.Text.Encoding) }).Invoke(new object[] { _imageFormat, partitions[i].Start, partitions[i].Start + partitions[i].Length, null });
|
Filesystem fs = (Filesystem)_plugin.GetType().GetConstructor(new Type[] { typeof(ImagePlugin), typeof(Partition), typeof(System.Text.Encoding) }).Invoke(new object[] { _imageFormat, partitions[i], null });
|
||||||
error = fs.Mount(options.Debug);
|
error = fs.Mount(options.Debug);
|
||||||
if(error == Errno.NoError)
|
if(error == Errno.NoError)
|
||||||
{
|
{
|
||||||
@@ -223,7 +223,7 @@ namespace DiscImageChef.Commands
|
|||||||
if(plugins.PluginsList.TryGetValue(plugin_name, out _plugin))
|
if(plugins.PluginsList.TryGetValue(plugin_name, out _plugin))
|
||||||
{
|
{
|
||||||
DicConsole.WriteLine(string.Format("As identified by {0}.", _plugin.Name));
|
DicConsole.WriteLine(string.Format("As identified by {0}.", _plugin.Name));
|
||||||
Filesystem fs = (Filesystem)_plugin.GetType().GetConstructor(new Type[] { typeof(ImagePlugin), typeof(ulong), typeof(ulong), typeof(System.Text.Encoding) }).Invoke(new object[] { _imageFormat, (ulong)0, _imageFormat.GetSectors() - 1, null });
|
Filesystem fs = (Filesystem)_plugin.GetType().GetConstructor(new Type[] { typeof(ImagePlugin), typeof(Partition), typeof(System.Text.Encoding) }).Invoke(new object[] { _imageFormat, wholePart, null });
|
||||||
error = fs.Mount(options.Debug);
|
error = fs.Mount(options.Debug);
|
||||||
if(error == Errno.NoError)
|
if(error == Errno.NoError)
|
||||||
{
|
{
|
||||||
@@ -248,7 +248,7 @@ namespace DiscImageChef.Commands
|
|||||||
{
|
{
|
||||||
plugins.PluginsList.TryGetValue(id_plugins[0], out _plugin);
|
plugins.PluginsList.TryGetValue(id_plugins[0], out _plugin);
|
||||||
DicConsole.WriteLine(string.Format("Identified by {0}.", _plugin.Name));
|
DicConsole.WriteLine(string.Format("Identified by {0}.", _plugin.Name));
|
||||||
Filesystem fs = (Filesystem)_plugin.GetType().GetConstructor(new Type[] { typeof(ImagePlugin), typeof(ulong), typeof(ulong), typeof(System.Text.Encoding) }).Invoke(new object[] { _imageFormat, (ulong)0, _imageFormat.GetSectors() - 1, null });
|
Filesystem fs = (Filesystem)_plugin.GetType().GetConstructor(new Type[] { typeof(ImagePlugin), typeof(Partition), typeof(System.Text.Encoding) }).Invoke(new object[] { _imageFormat, wholePart, null });
|
||||||
error = fs.Mount(options.Debug);
|
error = fs.Mount(options.Debug);
|
||||||
if(error == Errno.NoError)
|
if(error == Errno.NoError)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user