diff --git a/NaiveSharp/View/About.Designer.cs b/NaiveSharp/View/About.Designer.cs index 5a73dc6..3e06880 100644 --- a/NaiveSharp/View/About.Designer.cs +++ b/NaiveSharp/View/About.Designer.cs @@ -69,7 +69,7 @@ private void InitializeComponent() this.lblContext.Name = "lblContext"; this.lblContext.Size = new System.Drawing.Size(111, 60); this.lblContext.TabIndex = 2; - this.lblContext.Text = "NaiveSharp\r\nVersion 0.6-prev\r\n© 2020 KevinZonda\r\nGNU GPL v3.0"; + this.lblContext.Text = "NaiveSharp\r\nVersion 0.6.1-prev\r\n© 2020 KevinZonda\r\nGNU GPL v3.0"; // // lstCredit // diff --git a/NaiveSharp/View/MainWindow.Designer.cs b/NaiveSharp/View/MainWindow.Designer.cs index db96aac..f6b0ea6 100644 --- a/NaiveSharp/View/MainWindow.Designer.cs +++ b/NaiveSharp/View/MainWindow.Designer.cs @@ -705,7 +705,7 @@ private void InitializeComponent() this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); this.MaximizeBox = false; this.Name = "MainWindow"; - this.Text = "Naive # 0.6 Preview"; + this.Text = "Naive # 0.6.1 Preview"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainWindow_FormClosing); this.Load += new System.EventHandler(this.MainWindows_Load); this.tlpProxyMode.ResumeLayout(false); diff --git a/NaiveSharp/View/MainWindow.cs b/NaiveSharp/View/MainWindow.cs index 3e66353..53d3748 100644 --- a/NaiveSharp/View/MainWindow.cs +++ b/NaiveSharp/View/MainWindow.cs @@ -13,6 +13,8 @@ public partial class MainWindow : Form { public MainWindow() { + CheckPath(); + // MessageBox.Show(File.ReadAllText(PATH.CONFIG_INI)); string runMode = LoadModeConfig(); diff --git a/NaiveSharp/View/MainWindowsEx.cs b/NaiveSharp/View/MainWindowsEx.cs index d0e29d1..17ce326 100644 --- a/NaiveSharp/View/MainWindowsEx.cs +++ b/NaiveSharp/View/MainWindowsEx.cs @@ -196,5 +196,18 @@ private void SaveConfig() } File.WriteAllText(PATH.CONFIG_INI, $"mode = {Config.RunMode}"); } + + private void CheckPath() + { + CheckDirectory(PATH.CONFIG); + } + + private void CheckDirectory(string path) + { + if (!Directory.Exists(path)) + { + Directory.CreateDirectory(path); + } + } } }