forked from MattRix/UnityDecompiled
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOverwriteFilesInfo.cs
More file actions
56 lines (48 loc) · 1.38 KB
/
OverwriteFilesInfo.cs
File metadata and controls
56 lines (48 loc) · 1.38 KB
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
47
48
49
50
51
52
53
54
55
using System;
using System.Collections.Generic;
internal class OverwriteFilesInfo
{
private Dictionary<string, bool> doOverwrite;
private Dictionary<string, string> hashes;
private bool keepAll;
private bool overwriteAll = false;
private List<string> userModified;
public OverwriteFilesInfo()
{
this.KeepAll = false;
}
public Dictionary<string, bool> DoOverwrite =>
((this.doOverwrite == null) ? (this.doOverwrite = new Dictionary<string, bool>()) : this.doOverwrite);
public Dictionary<string, string> Hashes =>
((this.hashes == null) ? (this.hashes = new Dictionary<string, string>()) : this.hashes);
public bool KeepAll
{
get =>
this.keepAll;
set
{
this.keepAll = value;
if (this.keepAll)
{
this.DoOverwrite.Clear();
this.UserModified.Clear();
}
}
}
public bool OverwriteAll
{
get =>
this.overwriteAll;
set
{
this.overwriteAll = value;
if (this.overwriteAll)
{
this.DoOverwrite.Clear();
this.UserModified.Clear();
}
}
}
public List<string> UserModified =>
((this.userModified == null) ? (this.userModified = new List<string>()) : this.userModified);
}