mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Invert 'if' statements to reduce nesting.
This commit is contained in:
@@ -2222,18 +2222,18 @@ public static class MMC
|
||||
break;
|
||||
}
|
||||
|
||||
if(line.StartsWith("BOOT2=cdrom0:", StringComparison.InvariantCultureIgnoreCase))
|
||||
{
|
||||
ps2BootFile = line.Substring(13);
|
||||
if(!line.StartsWith("BOOT2=cdrom0:", StringComparison.InvariantCultureIgnoreCase))
|
||||
continue;
|
||||
|
||||
if(ps2BootFile.StartsWith('\\'))
|
||||
ps2BootFile = ps2BootFile.Substring(1);
|
||||
ps2BootFile = line.Substring(13);
|
||||
|
||||
if(ps2BootFile.EndsWith(";1", StringComparison.InvariantCultureIgnoreCase))
|
||||
ps2BootFile = ps2BootFile.Substring(0, ps2BootFile.Length - 2);
|
||||
if(ps2BootFile.StartsWith('\\'))
|
||||
ps2BootFile = ps2BootFile.Substring(1);
|
||||
|
||||
break;
|
||||
}
|
||||
if(ps2BootFile.EndsWith(";1", StringComparison.InvariantCultureIgnoreCase))
|
||||
ps2BootFile = ps2BootFile.Substring(0, ps2BootFile.Length - 2);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
if(ps1BootFile != null &&
|
||||
|
||||
Reference in New Issue
Block a user