namespace GlennLib; 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 program. /// protected static readonly string CurrentDir = Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory); /// /// The "utils" folder that's shipped with the tool. /// protected static readonly string UtilDir = CurrentDir + "/utils"; }