-
Notifications
You must be signed in to change notification settings - Fork 0
/
PathCollection.cs
26 lines (21 loc) · 1.01 KB
/
PathCollection.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
using System.IO;
using XpadControl.Extensions;
namespace XpadControl
{
public class PathCollection
{
public PathCollection(string zeroPositionConfigPath, string buttonBindingsConfigPath)
{
zeroPositionConfigPath = zeroPositionConfigPath.ToAbsolutePath();
buttonBindingsConfigPath = buttonBindingsConfigPath.ToAbsolutePath();
if (!File.Exists(zeroPositionConfigPath))
throw new FileNotFoundException($"Can read AdamZeroPositionConfig. File {zeroPositionConfigPath} does not exist");
if (!File.Exists(buttonBindingsConfigPath))
throw new FileNotFoundException($"Can read ButtonBindingsConfigPath. File {buttonBindingsConfigPath} does not exist");
ZeroPositionConfigPath = zeroPositionConfigPath;
ButtonBindingsConfigPath = buttonBindingsConfigPath;
}
public string ZeroPositionConfigPath { get; private set; }
public string ButtonBindingsConfigPath { get; private set; }
}
}