You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
840 B
28 lines
840 B
namespace AM2RPortHelperLib;
|
|
|
|
public abstract class ModsBase
|
|
{
|
|
public delegate void OutputHandlerDelegate(string output);
|
|
|
|
// Create before accessing anything
|
|
static ModsBase()
|
|
{
|
|
Directory.CreateDirectory(TempDir);
|
|
Directory.CreateDirectory(UtilDir);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A temporary directory
|
|
/// </summary>
|
|
protected static readonly string TempDir = Path.GetTempPath() + "/PortHelper/";
|
|
|
|
/// <summary>
|
|
/// The current directory of the AM2RPortHelper program.
|
|
/// </summary>
|
|
protected static readonly string CurrentDir = Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory);
|
|
|
|
/// <summary>
|
|
/// The "utils" folder that's shipped with the AM2RPortHelper.
|
|
/// </summary>
|
|
protected static readonly string UtilDir = CurrentDir + "/utils";
|
|
} |