Implement default options for Opera.

This commit is contained in:
2019-08-02 00:39:51 +01:00
parent 16c92a430d
commit f4c9a02f97
2 changed files with 4 additions and 0 deletions

View File

@@ -41,6 +41,7 @@ namespace DiscImageChef.Filesystems
{
public partial class OperaFS : IReadOnlyFilesystem
{
bool debug;
Dictionary<string, Dictionary<string, DirectoryEntryWithPointers>> directoryCache;
IMediaImage image;
bool mounted;

View File

@@ -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);