From 59eb3920054d6a5e5c5f9d7fe585c1c60ac0659d Mon Sep 17 00:00:00 2001 From: huiyadanli Date: Sun, 1 Aug 2021 17:22:06 +0800 Subject: [PATCH] =?UTF-8?q?[+]=20=20=E6=9B=BF=E6=8D=A2=E7=89=B9=E5=BE=81?= =?UTF-8?q?=E5=AD=98=E5=9C=A8=E9=80=9A=E9=85=8D=E7=AC=A6=E6=97=B6=E8=B7=B3?= =?UTF-8?q?=E8=BF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- RevokeMsgPatcher/Utils/FileUtil.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/RevokeMsgPatcher/Utils/FileUtil.cs b/RevokeMsgPatcher/Utils/FileUtil.cs index e7bb263..0e18c60 100644 --- a/RevokeMsgPatcher/Utils/FileUtil.cs +++ b/RevokeMsgPatcher/Utils/FileUtil.cs @@ -70,7 +70,18 @@ namespace RevokeMsgPatcher.Utils foreach (Change change in changes) { stream.Seek(change.Position, SeekOrigin.Begin); - stream.Write(change.Content, 0, change.Content.Length); + foreach(byte b in change.Content) + { + // 跳过通配符 + if(b == 0x3F) + { + stream.ReadByte(); + } + else + { + stream.WriteByte(b); + } + } } } }