From 2dae9872ef290f2e3a4d08be67096215da6a3248 Mon Sep 17 00:00:00 2001 From: morkt Date: Sun, 6 Dec 2015 22:28:13 +0400 Subject: [PATCH] use Binary.RotByteL method where appropriate. --- ArcFormats/FC01/ArcMRG.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArcFormats/FC01/ArcMRG.cs b/ArcFormats/FC01/ArcMRG.cs index 0d17a86a..99c000da 100644 --- a/ArcFormats/FC01/ArcMRG.cs +++ b/ArcFormats/FC01/ArcMRG.cs @@ -137,7 +137,7 @@ namespace GameRes.Formats.FC01 while (length > 0) { var v = data[index]; - data[index++] = (byte)((v << 1 | v >> 7) ^ key); + data[index++] = (byte)(Binary.RotByteL (v, 1) ^ key); key += length--; } } @@ -339,7 +339,7 @@ namespace GameRes.Formats.FC01 byte c = m_input[m_src++]; if (0 != Key) { - c = (byte)(((c << 1) | (c >> 7)) ^ key); + c = (byte)(Binary.RotByteL (c, 1) ^ key); key -= (byte)i; } word_10036650[i*2] = d;