[+] 替换特征存在通配符时跳过

This commit is contained in:
huiyadanli 2021-08-01 17:22:06 +08:00
parent 7274dc8009
commit 59eb392005

View File

@ -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);
}
}
}
}
}