-
Notifications
You must be signed in to change notification settings - Fork 1
/
Models.cs
46 lines (41 loc) · 943 Bytes
/
Models.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Edge.Patcher
{
internal class ReplaceItem
{
public string FileName { get; set; }
public bool NullifyCertificateTable { get; set; }
public Dictionary<string, string> Imports { get; set; }
public Dictionary<string, string> DelayImports { get; set; }
public Dictionary<string, BinaryDescriptor> Binary { get; set; }
}
internal class BinaryDescriptor
{
public BinaryDescriptor()
{
UpdateType = UpdateType.References;
ArchType = ArchTypeE.Both;
}
public byte[] Key { get; set; }
public byte[] Value { get; set; }
public UpdateType UpdateType { get; set; }
public ArchTypeE ArchType { get; set; }
}
[Flags]
internal enum UpdateType
{
None = 0,
NtpOnly = 1,
References = 2,
All = 3,
}
internal enum ArchTypeE
{
Both = 0,
x86 = 1,
x64 = 2,
}
}