From 6412205fa3e549315f83faaf110b0c912abc775a Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sat, 1 Sep 2018 17:43:38 -0700 Subject: [PATCH] Unknown sector ranges aren't recorded --- DICUI/Utilities/DumpEnvironment.cs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/DICUI/Utilities/DumpEnvironment.cs b/DICUI/Utilities/DumpEnvironment.cs index 7d9fe1d4..f693de58 100644 --- a/DICUI/Utilities/DumpEnvironment.cs +++ b/DICUI/Utilities/DumpEnvironment.cs @@ -1460,12 +1460,8 @@ namespace DICUI.Utilities while (!sr.ReadLine().Trim().StartsWith("Number of security sector ranges:")); // Now that we're at the ranges, read each line in and concatenate - string line = sr.ReadLine().Trim(); - - // TODO: Clean up these regex definitions Regex layerRegex = new Regex(@"Layer [01].*, startLBA-endLBA:\s*(\d+)-\s*(\d+)"); - Regex unknownRegex = new Regex(@"Unknown ranges.*, startLBA-endLBA:\s*(\d+)-\s*(\d+)"); - + string line = sr.ReadLine().Trim(); while (!line.StartsWith("========== Unlock 2 state(wxripper) ==========")) { // If we have a recognized line format, parse it @@ -1474,11 +1470,6 @@ namespace DICUI.Utilities var match = layerRegex.Match(line); ss += $"{match.Groups[1]}-{match.Groups[2]}\n"; } - else if (line.StartsWith("Unknown ranges")) - { - var match = unknownRegex.Match(line); - ss += $"{match.Groups[1]}-{match.Groups[2]}\n"; - } line = sr.ReadLine().Trim(); }