mirror of
https://github.com/huiyadanli/RevokeMsgPatcher.git
synced 2026-07-29 05:37:13 +08:00
[+] 补丁可选功能
This commit is contained in:
@@ -24,12 +24,24 @@ namespace RevokeMsgPatcher.Model
|
||||
o.StartVersion = StartVersion;
|
||||
o.EndVersion = EndVersion;
|
||||
List<ReplacePattern> cs = new List<ReplacePattern>();
|
||||
foreach(ReplacePattern c in ReplacePatterns)
|
||||
foreach (ReplacePattern c in ReplacePatterns)
|
||||
{
|
||||
cs.Add(c.Clone());
|
||||
}
|
||||
o.ReplacePatterns = cs;
|
||||
return o;
|
||||
}
|
||||
|
||||
public List<string> GetCategories()
|
||||
{
|
||||
if (ReplacePatterns != null && ReplacePatterns.Count > 0)
|
||||
{
|
||||
return ReplacePatterns.Select(p => p.Category).ToList();
|
||||
}
|
||||
else
|
||||
{
|
||||
return new List<string>();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,6 +8,8 @@ namespace RevokeMsgPatcher.Model
|
||||
|
||||
public byte[] Replace { get; set; }
|
||||
|
||||
public string Category { get; set; }
|
||||
|
||||
public ReplacePattern Clone()
|
||||
{
|
||||
ReplacePattern o = new ReplacePattern();
|
||||
|
||||
Reference in New Issue
Block a user