mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
REFACTOR: Invert 'if' statement to reduce nesting.
This commit is contained in:
@@ -708,20 +708,21 @@ namespace DiscImageChef.Filesystems.ISO9660
|
||||
ISOMetadata.AppendLine("\t\tImage contains ATAPI drivers");
|
||||
if(flags.HasFlag(ElToritoFlags.SCSI)) ISOMetadata.AppendLine("\t\tImage contains SCSI drivers");
|
||||
|
||||
if(flags.HasFlag(ElToritoFlags.Continued))
|
||||
while(true && torito_off < vd_sector.Length)
|
||||
{
|
||||
ElToritoSectionEntryExtension section_extension = new ElToritoSectionEntryExtension();
|
||||
ptr = Marshal.AllocHGlobal(ElToritoEntrySize);
|
||||
Marshal.Copy(vd_sector, torito_off, ptr, ElToritoEntrySize);
|
||||
section_extension =
|
||||
(ElToritoSectionEntryExtension)
|
||||
Marshal.PtrToStructure(ptr, typeof(ElToritoSectionEntryExtension));
|
||||
Marshal.FreeHGlobal(ptr);
|
||||
torito_off += ElToritoEntrySize;
|
||||
if(!flags.HasFlag(ElToritoFlags.Continued)) continue;
|
||||
|
||||
if(!section_extension.extension_flags.HasFlag(ElToritoFlags.Continued)) break;
|
||||
}
|
||||
while(true && torito_off < vd_sector.Length)
|
||||
{
|
||||
ElToritoSectionEntryExtension section_extension = new ElToritoSectionEntryExtension();
|
||||
ptr = Marshal.AllocHGlobal(ElToritoEntrySize);
|
||||
Marshal.Copy(vd_sector, torito_off, ptr, ElToritoEntrySize);
|
||||
section_extension =
|
||||
(ElToritoSectionEntryExtension)
|
||||
Marshal.PtrToStructure(ptr, typeof(ElToritoSectionEntryExtension));
|
||||
Marshal.FreeHGlobal(ptr);
|
||||
torito_off += ElToritoEntrySize;
|
||||
|
||||
if(!section_extension.extension_flags.HasFlag(ElToritoFlags.Continued)) break;
|
||||
}
|
||||
}
|
||||
|
||||
if(section_header.header_id == ElToritoIndicator.LastHeader) break;
|
||||
|
||||
Reference in New Issue
Block a user