mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Style corrections.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2015-04-20 Natalia Portillo <claunia@claunia.com>
|
||||||
|
|
||||||
|
* Plugins/AmigaDOS.cs:
|
||||||
|
* PartPlugins/Atari.cs:
|
||||||
|
Style corrections.
|
||||||
|
|
||||||
2015-04-20 Natalia Portillo <claunia@claunia.com>
|
2015-04-20 Natalia Portillo <claunia@claunia.com>
|
||||||
|
|
||||||
* PartPlugins/Atari.cs:
|
* PartPlugins/Atari.cs:
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ namespace DiscImageChef.PartPlugins
|
|||||||
|
|
||||||
if (table.entries[i].start <= imagePlugin.GetSectors())
|
if (table.entries[i].start <= imagePlugin.GetSectors())
|
||||||
{
|
{
|
||||||
if(MainClass.isDebug)
|
if (MainClass.isDebug)
|
||||||
{
|
{
|
||||||
if ((table.entries[i].start + table.entries[i].length) > imagePlugin.GetSectors())
|
if ((table.entries[i].start + table.entries[i].length) > imagePlugin.GetSectors())
|
||||||
Console.WriteLine("DEBUG (Atari plugin): WARNING: End of partition goes beyond device size");
|
Console.WriteLine("DEBUG (Atari plugin): WARNING: End of partition goes beyond device size");
|
||||||
@@ -225,7 +225,7 @@ namespace DiscImageChef.PartPlugins
|
|||||||
validTable = true;
|
validTable = true;
|
||||||
if (extendedTable.entries[j].start <= imagePlugin.GetSectors())
|
if (extendedTable.entries[j].start <= imagePlugin.GetSectors())
|
||||||
{
|
{
|
||||||
if(MainClass.isDebug)
|
if (MainClass.isDebug)
|
||||||
{
|
{
|
||||||
if ((extendedTable.entries[j].start + extendedTable.entries[j].length) > imagePlugin.GetSectors())
|
if ((extendedTable.entries[j].start + extendedTable.entries[j].length) > imagePlugin.GetSectors())
|
||||||
Console.WriteLine("DEBUG (Atari plugin): WARNING: End of partition goes beyond device size");
|
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 (table.icdEntries[i].start <= imagePlugin.GetSectors())
|
||||||
{
|
{
|
||||||
if(MainClass.isDebug)
|
if (MainClass.isDebug)
|
||||||
{
|
{
|
||||||
if ((table.icdEntries[i].start + table.icdEntries[i].length) > imagePlugin.GetSectors())
|
if ((table.icdEntries[i].start + table.icdEntries[i].length) > imagePlugin.GetSectors())
|
||||||
Console.WriteLine("DEBUG (Atari plugin): WARNING: End of partition goes beyond device size");
|
Console.WriteLine("DEBUG (Atari plugin): WARNING: End of partition goes beyond device size");
|
||||||
|
|||||||
@@ -261,7 +261,7 @@ namespace DiscImageChef.Plugins
|
|||||||
rootBlk.hashTable = new uint[rootBlk.hashTableSize];
|
rootBlk.hashTable = new uint[rootBlk.hashTableSize];
|
||||||
|
|
||||||
for (int i = 0; i < rootBlk.hashTableSize; i++)
|
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.bitmapFlag = BigEndianBitConverter.ToUInt32(RootBlockSector, (int)(0x18 + rootBlk.hashTableSize * 4 + 0));
|
||||||
rootBlk.bitmapPages = new uint[25];
|
rootBlk.bitmapPages = new uint[25];
|
||||||
@@ -274,7 +274,7 @@ namespace DiscImageChef.Plugins
|
|||||||
rootBlk.rMins = BigEndianBitConverter.ToUInt32(RootBlockSector, (int)(0x18 + rootBlk.hashTableSize * 4 + 112));
|
rootBlk.rMins = BigEndianBitConverter.ToUInt32(RootBlockSector, (int)(0x18 + rootBlk.hashTableSize * 4 + 112));
|
||||||
rootBlk.rTicks = BigEndianBitConverter.ToUInt32(RootBlockSector, (int)(0x18 + rootBlk.hashTableSize * 4 + 116));
|
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.diskName = StringHandlers.PascalToString(diskName);
|
||||||
|
|
||||||
rootBlk.reserved1 = BigEndianBitConverter.ToUInt32(RootBlockSector, (int)(0x18 + rootBlk.hashTableSize * 4 + 152));
|
rootBlk.reserved1 = BigEndianBitConverter.ToUInt32(RootBlockSector, (int)(0x18 + rootBlk.hashTableSize * 4 + 152));
|
||||||
@@ -324,12 +324,12 @@ namespace DiscImageChef.Plugins
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if((bootBlk.diskType & 0x6D754600) == 0x6D754600)
|
if ((bootBlk.diskType & 0x6D754600) == 0x6D754600)
|
||||||
sbInformation.Append(", with multi-user patches");
|
sbInformation.Append(", with multi-user patches");
|
||||||
|
|
||||||
sbInformation.AppendLine();
|
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.AppendLine("AFFS v2, following information may be completely incorrect or garbage.");
|
||||||
|
|
||||||
sbInformation.AppendFormat("Volume name: {0}", rootBlk.diskName).AppendLine();
|
sbInformation.AppendFormat("Volume name: {0}", rootBlk.diskName).AppendLine();
|
||||||
@@ -340,7 +340,7 @@ namespace DiscImageChef.Plugins
|
|||||||
if (rootBlk.bitmapExtensionBlock != 0x00000000 && rootBlk.bitmapExtensionBlock != 0xFFFFFFFF)
|
if (rootBlk.bitmapExtensionBlock != 0x00000000 && rootBlk.bitmapExtensionBlock != 0xFFFFFFFF)
|
||||||
sbInformation.AppendFormat("Bitmap extension at block {0}", rootBlk.bitmapExtensionBlock).AppendLine();
|
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("Directory cache starts at block {0}", rootBlk.extension).AppendLine();
|
||||||
|
|
||||||
sbInformation.AppendFormat("Volume created on {0}", DateHandlers.AmigaToDateTime(rootBlk.cDays, rootBlk.cMins, rootBlk.cTicks)).AppendLine();
|
sbInformation.AppendFormat("Volume created on {0}", DateHandlers.AmigaToDateTime(rootBlk.cDays, rootBlk.cMins, rootBlk.cTicks)).AppendLine();
|
||||||
|
|||||||
Reference in New Issue
Block a user