diff --git a/SpineViewer/Program.cs b/SpineViewer/Program.cs index 0d668ed..9b97608 100644 --- a/SpineViewer/Program.cs +++ b/SpineViewer/Program.cs @@ -5,13 +5,38 @@ namespace SpineViewer { internal static class Program { - public const string Name = "SpineViewer"; + /// + /// 程序路径 + /// + public static readonly string FilePath = Environment.ProcessPath; + + /// + /// 程序名 + /// + public static readonly string Name = Path.GetFileNameWithoutExtension(FilePath); + + /// + /// 程序目录 + /// + public static readonly string RootDir = Path.GetDirectoryName(FilePath); + + /// + /// 程序临时目录 + /// public static readonly string TempDir = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), Name)).FullName; + + /// + /// 程序进程 + /// public static readonly Process Process = Process.GetCurrentProcess(); + + /// + /// 程序日志器 + /// public static readonly Logger Logger = LogManager.GetCurrentClassLogger(); /// - /// The main entry point for the application. + /// 应用入口点 /// [STAThread] static void Main()