namespace AM2RPortHelperLib;
public abstract class ModsBase
{
public delegate void OutputHandlerDelegate(string output);
protected static OutputHandlerDelegate OutputHandler;
protected static void SendOutput(string output)
{
OutputHandler?.Invoke(output);
}
///
/// 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";
}