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.
AM2RPortHelper/AM2RPortHelperLib/ModsBase.cs

28 lines
836 B

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);
}
/// <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";
}