namespace AM2RPortHelperLib;
public abstract class ModsBase
{
public delegate void OutputHandlerDelegate(string output);
// Create before accessing anything
static ModsBase()
{
Directory.CreateDirectory(TempDir);
Directory.CreateDirectory(UtilDir);
}
///
/// A temporary directory
///
protected static readonly string TempDir = Path.GetTempPath() + "/PortHelper/";
///
/// The current directory of the AM2RPortHelper program.
///
protected static readonly string CurrentDir = Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory);
///
/// The "utils" folder that's shipped with the AM2RPortHelper.
///
protected static readonly string UtilDir = CurrentDir + "/utils";
}