using System.IO;
|
|
namespace OpenTapEditor.Util
|
{
|
public class PathHelper
|
{
|
public static string AppFolder { get; private set; }
|
public static string ConfigFolder { get; private set; }
|
public static string AdapterDataPath { get; private set; }
|
public static string SettingIniPath { get; private set; }
|
|
static PathHelper()
|
{
|
AppFolder = AppDomain.CurrentDomain.BaseDirectory;
|
|
ConfigFolder = Path.Combine(AppFolder, "Config");
|
if (!Directory.Exists(ConfigFolder))
|
{
|
Directory.CreateDirectory(ConfigFolder);
|
}
|
|
AdapterDataPath = Path.Combine(ConfigFolder, "AdapterData.data");
|
SettingIniPath = Path.Combine(ConfigFolder, "Setting.ini");
|
}
|
}
|
}
|