Cleanup PathEntryCollection ctors, remove unused method Add
This commit is contained in:
parent
0fb9ef77e6
commit
b14ed4966f
|
@ -12,22 +12,13 @@ namespace BizHawk.Client.Common
|
||||||
{
|
{
|
||||||
public List<PathEntry> Paths { get; }
|
public List<PathEntry> Paths { get; }
|
||||||
|
|
||||||
public PathEntryCollection()
|
|
||||||
{
|
|
||||||
Paths = new List<PathEntry>();
|
|
||||||
Paths.AddRange(DefaultValues);
|
|
||||||
}
|
|
||||||
|
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
public PathEntryCollection(List<PathEntry> paths)
|
public PathEntryCollection(List<PathEntry> paths)
|
||||||
{
|
{
|
||||||
Paths = paths;
|
Paths = paths;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Add(PathEntry p)
|
public PathEntryCollection() : this(new List<PathEntry>(DefaultValues)) {}
|
||||||
{
|
|
||||||
Paths.Add(p);
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool UseRecentForRoms { get; set; }
|
public bool UseRecentForRoms { get; set; }
|
||||||
public string LastRomPath { get; set; } = ".";
|
public string LastRomPath { get; set; } = ".";
|
||||||
|
|
Loading…
Reference in New Issue