diff --git a/CHANGELIST.md b/CHANGELIST.md index 3f901e06..0fcc8119 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -8,6 +8,7 @@ - Fix missing information in README - Language selections unchecked by default - Update BinaryObjectScanner to 3.1.3 +- Fix information pulling for redumper (fuzz6001) ### 3.1.4 (2024-03-16) diff --git a/MPF.Core/Modules/Redumper/Parameters.cs b/MPF.Core/Modules/Redumper/Parameters.cs index 5de3a834..9ce35cf9 100644 --- a/MPF.Core/Modules/Redumper/Parameters.cs +++ b/MPF.Core/Modules/Redumper/Parameters.cs @@ -1444,7 +1444,7 @@ namespace MPF.Core.Modules.Redumper try { using var sr = File.OpenText(log); - var datString = string.Empty; + string? datString = null; // Find all occurrences of the hash information while (!sr.EndOfStream) @@ -1452,9 +1452,10 @@ namespace MPF.Core.Modules.Redumper // Fast forward to the dat line while (!sr.EndOfStream && sr.ReadLine()?.TrimStart()?.StartsWith("dat:") == false) ; if (sr.EndOfStream) - return null; + break; // Now that we're at the relevant entries, read each line in and concatenate + datString = string.Empty; var line = sr.ReadLine()?.Trim(); while (line?.StartsWith("