mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Implement default options for Opera.
This commit is contained in:
@@ -41,6 +41,7 @@ namespace DiscImageChef.Filesystems
|
||||
{
|
||||
public partial class OperaFS : IReadOnlyFilesystem
|
||||
{
|
||||
bool debug;
|
||||
Dictionary<string, Dictionary<string, DirectoryEntryWithPointers>> directoryCache;
|
||||
IMediaImage image;
|
||||
bool mounted;
|
||||
|
||||
@@ -17,6 +17,9 @@ namespace DiscImageChef.Filesystems
|
||||
// TODO: Find correct default encoding
|
||||
Encoding = Encoding.ASCII;
|
||||
|
||||
if(options == null) options = GetDefaultOptions();
|
||||
if(options.TryGetValue("debug", out string debugString)) bool.TryParse(debugString, out debug);
|
||||
|
||||
byte[] sbSector = imagePlugin.ReadSector(0 + partition.Start);
|
||||
|
||||
SuperBlock sb = Marshal.ByteArrayToStructureBigEndian<SuperBlock>(sbSector);
|
||||
|
||||
Reference in New Issue
Block a user