namespace AM2RPortHelperLib;
public abstract class IMods
{
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 tmp = 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";
}