mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
Fix incorrect PIC formatting
This commit is contained in:
@@ -2330,7 +2330,7 @@ namespace DICUI.DiscImageCreator
|
||||
try
|
||||
{
|
||||
byte[] picBytes = File.ReadAllBytes(picPath);
|
||||
string hex = BitConverter.ToString(picBytes, 0).Replace("-", string.Empty);
|
||||
string hex = BitConverter.ToString(picBytes).Replace("-", string.Empty);
|
||||
return Regex.Replace(hex, ".{32}", "$0\n");
|
||||
}
|
||||
catch
|
||||
|
||||
@@ -1078,7 +1078,7 @@ namespace DICUI.Utilities
|
||||
string last = null;
|
||||
for (int i = 0; i < output.Count; )
|
||||
{
|
||||
if (output[i] == last)
|
||||
if (output[i] == last && string.IsNullOrWhiteSpace(last))
|
||||
{
|
||||
output.RemoveAt(i);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user