mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Refactor, pass whole partition structure to filesystems.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// /***************************************************************************
|
||||
// /***************************************************************************
|
||||
// The Disc Image Chef
|
||||
// ----------------------------------------------------------------------------
|
||||
//
|
||||
@@ -33,6 +33,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using DiscImageChef.CommonTypes;
|
||||
using DiscImageChef.ImagePlugins;
|
||||
|
||||
namespace DiscImageChef.Filesystems.CPM
|
||||
@@ -41,8 +42,7 @@ namespace DiscImageChef.Filesystems.CPM
|
||||
{
|
||||
bool mounted;
|
||||
readonly ImagePlugin device;
|
||||
ulong partStart;
|
||||
ulong partEnd;
|
||||
Partition partition;
|
||||
|
||||
/// <summary>
|
||||
/// Stores all known CP/M disk definitions
|
||||
@@ -117,11 +117,10 @@ namespace DiscImageChef.Filesystems.CPM
|
||||
CurrentEncoding = Encoding.GetEncoding("IBM437");
|
||||
}
|
||||
|
||||
public CPM(ImagePlugin imagePlugin, ulong partitionStart, ulong partitionEnd, Encoding encoding)
|
||||
public CPM(ImagePlugin imagePlugin, Partition partition, Encoding encoding)
|
||||
{
|
||||
device = imagePlugin;
|
||||
partStart = partitionStart;
|
||||
partEnd = partitionEnd;
|
||||
this.partition = partition;
|
||||
Name = "CP/M File System";
|
||||
PluginUUID = new Guid("AA2B8585-41DF-4E3B-8A35-D1A935E2F8A1");
|
||||
if(encoding == null)
|
||||
|
||||
Reference in New Issue
Block a user