From a086c699de4cd2062999e29a5aaa9d047c1de667 Mon Sep 17 00:00:00 2001 From: morkt Date: Thu, 10 Dec 2015 20:00:02 +0400 Subject: [PATCH] (OpenEntry): use Binary.RotByteR method. --- ArcFormats/Will/ArcPulltop.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArcFormats/Will/ArcPulltop.cs b/ArcFormats/Will/ArcPulltop.cs index d416b5ae..0601f537 100644 --- a/ArcFormats/Will/ArcPulltop.cs +++ b/ArcFormats/Will/ArcPulltop.cs @@ -23,6 +23,7 @@ // IN THE SOFTWARE. // +using GameRes.Utility; using System; using System.Collections.Generic; using System.ComponentModel.Composition; @@ -99,8 +100,7 @@ namespace GameRes.Formats.Will var data = arc.File.View.ReadBytes (entry.Offset, entry.Size); for (int i = 0; i < data.Length; ++i) { - byte b = data[i]; - data[i] = (byte)(b >> 2 | b << 6); + data[i] = Binary.RotByteR (data[i], 2); } return new MemoryStream (data); }