From 83ff97a8da888509228c2720c6a5199440126457 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Mon, 20 Apr 2015 17:52:08 +0100 Subject: [PATCH] Style corrections. --- DiscImageChef/ChangeLog | 6 ++++++ DiscImageChef/PartPlugins/Atari.cs | 6 +++--- DiscImageChef/Plugins/AmigaDOS.cs | 10 +++++----- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/DiscImageChef/ChangeLog b/DiscImageChef/ChangeLog index ae78a517..a108bcb7 100644 --- a/DiscImageChef/ChangeLog +++ b/DiscImageChef/ChangeLog @@ -1,3 +1,9 @@ +2015-04-20 Natalia Portillo + + * Plugins/AmigaDOS.cs: + * PartPlugins/Atari.cs: + Style corrections. + 2015-04-20 Natalia Portillo * PartPlugins/Atari.cs: diff --git a/DiscImageChef/PartPlugins/Atari.cs b/DiscImageChef/PartPlugins/Atari.cs index f554f5fe..f04366de 100644 --- a/DiscImageChef/PartPlugins/Atari.cs +++ b/DiscImageChef/PartPlugins/Atari.cs @@ -145,7 +145,7 @@ namespace DiscImageChef.PartPlugins if (table.entries[i].start <= imagePlugin.GetSectors()) { - if(MainClass.isDebug) + if (MainClass.isDebug) { if ((table.entries[i].start + table.entries[i].length) > imagePlugin.GetSectors()) Console.WriteLine("DEBUG (Atari plugin): WARNING: End of partition goes beyond device size"); @@ -225,7 +225,7 @@ namespace DiscImageChef.PartPlugins validTable = true; if (extendedTable.entries[j].start <= imagePlugin.GetSectors()) { - if(MainClass.isDebug) + if (MainClass.isDebug) { if ((extendedTable.entries[j].start + extendedTable.entries[j].length) > imagePlugin.GetSectors()) Console.WriteLine("DEBUG (Atari plugin): WARNING: End of partition goes beyond device size"); @@ -296,7 +296,7 @@ namespace DiscImageChef.PartPlugins { if (table.icdEntries[i].start <= imagePlugin.GetSectors()) { - if(MainClass.isDebug) + if (MainClass.isDebug) { if ((table.icdEntries[i].start + table.icdEntries[i].length) > imagePlugin.GetSectors()) Console.WriteLine("DEBUG (Atari plugin): WARNING: End of partition goes beyond device size"); diff --git a/DiscImageChef/Plugins/AmigaDOS.cs b/DiscImageChef/Plugins/AmigaDOS.cs index 58ae6498..79abb8d4 100644 --- a/DiscImageChef/Plugins/AmigaDOS.cs +++ b/DiscImageChef/Plugins/AmigaDOS.cs @@ -261,7 +261,7 @@ namespace DiscImageChef.Plugins rootBlk.hashTable = new uint[rootBlk.hashTableSize]; for (int i = 0; i < rootBlk.hashTableSize; i++) - rootBlk.hashTable[i] = BigEndianBitConverter.ToUInt32(RootBlockSector, 0x18 + i*4); + rootBlk.hashTable[i] = BigEndianBitConverter.ToUInt32(RootBlockSector, 0x18 + i * 4); rootBlk.bitmapFlag = BigEndianBitConverter.ToUInt32(RootBlockSector, (int)(0x18 + rootBlk.hashTableSize * 4 + 0)); rootBlk.bitmapPages = new uint[25]; @@ -274,7 +274,7 @@ namespace DiscImageChef.Plugins rootBlk.rMins = BigEndianBitConverter.ToUInt32(RootBlockSector, (int)(0x18 + rootBlk.hashTableSize * 4 + 112)); rootBlk.rTicks = BigEndianBitConverter.ToUInt32(RootBlockSector, (int)(0x18 + rootBlk.hashTableSize * 4 + 116)); - Array.Copy(RootBlockSector, 0x18+rootBlk.hashTableSize*4+120, diskName, 0, 32); + Array.Copy(RootBlockSector, 0x18 + rootBlk.hashTableSize * 4 + 120, diskName, 0, 32); rootBlk.diskName = StringHandlers.PascalToString(diskName); rootBlk.reserved1 = BigEndianBitConverter.ToUInt32(RootBlockSector, (int)(0x18 + rootBlk.hashTableSize * 4 + 152)); @@ -324,12 +324,12 @@ namespace DiscImageChef.Plugins break; } - if((bootBlk.diskType & 0x6D754600) == 0x6D754600) + if ((bootBlk.diskType & 0x6D754600) == 0x6D754600) sbInformation.Append(", with multi-user patches"); sbInformation.AppendLine(); - if((bootBlk.diskType & 0xFF) == 6 || (bootBlk.diskType & 0xFF) == 7) + if ((bootBlk.diskType & 0xFF) == 6 || (bootBlk.diskType & 0xFF) == 7) sbInformation.AppendLine("AFFS v2, following information may be completely incorrect or garbage."); sbInformation.AppendFormat("Volume name: {0}", rootBlk.diskName).AppendLine(); @@ -340,7 +340,7 @@ namespace DiscImageChef.Plugins if (rootBlk.bitmapExtensionBlock != 0x00000000 && rootBlk.bitmapExtensionBlock != 0xFFFFFFFF) sbInformation.AppendFormat("Bitmap extension at block {0}", rootBlk.bitmapExtensionBlock).AppendLine(); - if((bootBlk.diskType & 0xFF) == 4 || (bootBlk.diskType & 0xFF) == 5) + if ((bootBlk.diskType & 0xFF) == 4 || (bootBlk.diskType & 0xFF) == 5) sbInformation.AppendFormat("Directory cache starts at block {0}", rootBlk.extension).AppendLine(); sbInformation.AppendFormat("Volume created on {0}", DateHandlers.AmigaToDateTime(rootBlk.cDays, rootBlk.cMins, rootBlk.cTicks)).AppendLine();