mirror of
https://github.com/huiyadanli/RevokeMsgPatcher.git
synced 2026-07-29 05:37:13 +08:00
[+] 针对微信、QQ特定版本范围的特征码
This commit is contained in:
@@ -17,7 +17,7 @@ namespace RevokeMsgPatcher.Model
|
||||
/// <summary>
|
||||
/// 通用的修改特征
|
||||
/// </summary>
|
||||
public Dictionary<string, List<ModifyInfo>> FileCommonModifyInfos { get; set; }
|
||||
public Dictionary<string, List<CommonModifyInfo>> FileCommonModifyInfos { get; set; }
|
||||
|
||||
public HashSet<string> GetSupportVersions()
|
||||
{
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace RevokeMsgPatcher.Model
|
||||
|
||||
public string EndVersion { get; set; }
|
||||
|
||||
public List<Change> Changes { get; set; }
|
||||
public List<ReplacePattern> ReplacePatterns { get; set; }
|
||||
|
||||
public CommonModifyInfo Clone()
|
||||
{
|
||||
@@ -23,12 +23,12 @@ namespace RevokeMsgPatcher.Model
|
||||
o.Name = Name;
|
||||
o.StartVersion = StartVersion;
|
||||
o.EndVersion = EndVersion;
|
||||
List<Change> cs = new List<Change>();
|
||||
foreach(Change c in Changes)
|
||||
List<ReplacePattern> cs = new List<ReplacePattern>();
|
||||
foreach(ReplacePattern c in ReplacePatterns)
|
||||
{
|
||||
cs.Add(c.Clone());
|
||||
}
|
||||
o.Changes = cs;
|
||||
o.ReplacePatterns = cs;
|
||||
return o;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
|
||||
namespace RevokeMsgPatcher.Model
|
||||
{
|
||||
public class ReplacePattern
|
||||
{
|
||||
public byte[] Search { get; set; }
|
||||
|
||||
public byte[] Replace { get; set; }
|
||||
|
||||
public ReplacePattern Clone()
|
||||
{
|
||||
ReplacePattern o = new ReplacePattern();
|
||||
o.Search = Search;
|
||||
o.Replace = Replace;
|
||||
return o;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user