mirror of
https://github.com/aaru-dps/Aaru.git
synced 2026-07-08 18:16:24 +00:00
Address Github code quality issues
This commit is contained in:
@@ -403,9 +403,9 @@ partial class Dump
|
||||
if(scsiReader.OmniDriveReadRaw &&
|
||||
decodedPfi.HasValue &&
|
||||
((dskType >= MediaType.DVDROM && dskType <= MediaType.DVDDownload)
|
||||
|| dskType != MediaType.PS2DVD
|
||||
|| dskType != MediaType.PS3DVD
|
||||
|| dskType != MediaType.Nuon))
|
||||
|| dskType == MediaType.PS2DVD
|
||||
|| dskType == MediaType.PS3DVD
|
||||
|| dskType == MediaType.Nuon))
|
||||
nominalNegativeSectors = Math.Min(nominalNegativeSectors, DvdLeadinSectors);
|
||||
|
||||
mediaTags.TryGetValue(MediaTagType.BD_DI, out byte[] di);
|
||||
|
||||
@@ -77,6 +77,12 @@ partial class Dump
|
||||
uint blocksToRead = maxBlocksToRead;
|
||||
var outputFormat = _outputPlugin as IWritableImage;
|
||||
|
||||
if(outputFormat is null)
|
||||
{
|
||||
ErrorMessage?.Invoke(Localization.Core.Output_format_not_initialized);
|
||||
return;
|
||||
}
|
||||
|
||||
InitProgress?.Invoke();
|
||||
|
||||
if(scsiReader.HldtstReadRaw && _resume.NextBlock > 0)
|
||||
@@ -160,7 +166,7 @@ partial class Dump
|
||||
double elapsed = _speedStopwatch.Elapsed.TotalSeconds;
|
||||
if(elapsed > 0)
|
||||
{
|
||||
currentSpeed = sectorSpeedStart * blockSize / (1048576 * elapsed);
|
||||
currentSpeed = (double)sectorSpeedStart * blockSize / (1048576d * elapsed);
|
||||
sectorSpeedStart = 0;
|
||||
_speedStopwatch.Restart();
|
||||
}
|
||||
@@ -361,7 +367,7 @@ partial class Dump
|
||||
double elapsed = _speedStopwatch.Elapsed.TotalSeconds;
|
||||
if(elapsed > 0)
|
||||
{
|
||||
currentSpeed = sectorSpeedStart * blockSize / (1048576 * elapsed);
|
||||
currentSpeed = (double)sectorSpeedStart * blockSize / (1048576d * elapsed);
|
||||
sectorSpeedStart = 0;
|
||||
_speedStopwatch.Restart();
|
||||
}
|
||||
|
||||
6
Aaru.Localization/Core.Designer.cs
generated
6
Aaru.Localization/Core.Designer.cs
generated
@@ -6946,5 +6946,11 @@ namespace Aaru.Localization {
|
||||
return ResourceManager.GetString("Reading_data_sectors", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Output_format_not_initialized {
|
||||
get {
|
||||
return ResourceManager.GetString("Output_format_not_initialized", resourceCulture);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3544,4 +3544,7 @@ It has no sense to do it, and it will put too much strain on the tape.</value>
|
||||
<data name="Reading_data_sectors" xml:space="preserve">
|
||||
<value>[slateblue1]Reading data sectors...[/]</value>
|
||||
</data>
|
||||
<data name="Output_format_not_initialized" xml:space="preserve">
|
||||
<value>[red]Output format not initialized.[/]</value>
|
||||
</data>
|
||||
</root>
|
||||
Reference in New Issue
Block a user