mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[Aaru.Images] Reformat and cleanup.
This commit is contained in:
@@ -43,9 +43,11 @@ namespace Aaru.DiscImages;
|
||||
|
||||
public sealed partial class T98
|
||||
{
|
||||
#region IWritableImage Members
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool Create(string path, MediaType mediaType, Dictionary<string, string> options, ulong sectors,
|
||||
uint sectorSize)
|
||||
uint sectorSize)
|
||||
{
|
||||
if(sectorSize != 256)
|
||||
{
|
||||
@@ -117,7 +119,7 @@ public sealed partial class T98
|
||||
return false;
|
||||
}
|
||||
|
||||
_writingStream.Seek((long)(256 + (sectorAddress * 256)), SeekOrigin.Begin);
|
||||
_writingStream.Seek((long)(256 + sectorAddress * 256), SeekOrigin.Begin);
|
||||
_writingStream.Write(data, 0, data.Length);
|
||||
|
||||
ErrorMessage = "";
|
||||
@@ -149,7 +151,7 @@ public sealed partial class T98
|
||||
return false;
|
||||
}
|
||||
|
||||
_writingStream.Seek((long)(256 + (sectorAddress * 256)), SeekOrigin.Begin);
|
||||
_writingStream.Seek((long)(256 + sectorAddress * 256), SeekOrigin.Begin);
|
||||
_writingStream.Write(data, 0, data.Length);
|
||||
|
||||
ErrorMessage = "";
|
||||
@@ -183,7 +185,7 @@ public sealed partial class T98
|
||||
return false;
|
||||
}
|
||||
|
||||
int cylinders = (int)(_imageInfo.Sectors / 33 / 8);
|
||||
var cylinders = (int)(_imageInfo.Sectors / 33 / 8);
|
||||
_writingStream.Seek(0, SeekOrigin.Begin);
|
||||
_writingStream.Write(BitConverter.GetBytes(cylinders), 0, 4);
|
||||
|
||||
@@ -223,4 +225,6 @@ public sealed partial class T98
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool SetImageInfo(ImageInfo imageInfo) => true;
|
||||
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user