From 9053f62ef30de097cd70cbfa31b330bdbbba0de0 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sun, 24 May 2015 17:11:19 -0700 Subject: [PATCH] Fix the last even line of bytes linq does the job cleaner than ugly math... --- pk3DS/Tools/Scripts.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pk3DS/Tools/Scripts.cs b/pk3DS/Tools/Scripts.cs index f972bbb..6771b2e 100644 --- a/pk3DS/Tools/Scripts.cs +++ b/pk3DS/Tools/Scripts.cs @@ -174,7 +174,7 @@ internal static string[] getHexLines(byte[] data, int count = 4) // Generates an x-byte wide space separated string array; leftovers included at the end. string[] s = new string[data.Length/count + ((data.Length % count > 0) ? 1 : 0)]; for (int i = 0; i < s.Length;i++) - s[i] += BitConverter.ToString(data, i*count, i+1