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 string TempDir => CreateAndReturnTempPath(); private static string CreateAndReturnTempPath() { string path = Path.GetTempPath() + "/GlennPortHelper/"; Directory.CreateDirectory(path); return path; } /// /// 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"; }