Cleanup PathEntryCollection ctors, remove unused method Add

This commit is contained in:
YoshiRulz 2021-02-26 18:18:11 +10:00
parent 0fb9ef77e6
commit b14ed4966f
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 1 additions and 10 deletions

View File

@ -12,22 +12,13 @@ namespace BizHawk.Client.Common
{
public List<PathEntry> Paths { get; }
public PathEntryCollection()
{
Paths = new List<PathEntry>();
Paths.AddRange(DefaultValues);
}
[JsonConstructor]
public PathEntryCollection(List<PathEntry> paths)
{
Paths = paths;
}
public void Add(PathEntry p)
{
Paths.Add(p);
}
public PathEntryCollection() : this(new List<PathEntry>(DefaultValues)) {}
public bool UseRecentForRoms { get; set; }
public string LastRomPath { get; set; } = ".";