Read entire PIC file (fixes #189)

This commit is contained in:
Matt Nadareski
2020-07-07 13:09:54 -07:00
parent 7396b02543
commit 74caf084ca

View File

@@ -2277,11 +2277,9 @@ namespace DICUI.DiscImageCreator
try
{
using (BinaryReader br = new BinaryReader(File.OpenRead(picPath)))
{
string hex = BitConverter.ToString(br.ReadBytes(140)).Replace("-", string.Empty);
return Regex.Replace(hex, ".{32}", "$0\n");
}
byte[] picBytes = File.ReadAllBytes(picPath);
string hex = BitConverter.ToString(picBytes, 0).Replace("-", string.Empty);
return Regex.Replace(hex, ".{32}", "$0\n");
}
catch
{