mirror of
https://github.com/huiyadanli/RevokeMsgPatcher.git
synced 2025-05-23 22:06:06 +08:00
[+] 替换特征存在通配符时跳过
This commit is contained in:
parent
7274dc8009
commit
59eb392005
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user