From 4c63c820acf72f33a592bf063b04140ef3f742f6 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Thu, 31 Mar 2016 18:21:00 -0700 Subject: [PATCH] Add extra check for directory creation; bump version number --- DATabase/Core/Generate.cs | 2 +- DATabase/DATabase.cs | 2 +- Deheader/Headerer.cs | 2 +- SabreToolsUI/SabreToolsUI.Designer.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/DATabase/Core/Generate.cs b/DATabase/Core/Generate.cs index 0517c89a..5240e03a 100644 --- a/DATabase/Core/Generate.cs +++ b/DATabase/Core/Generate.cs @@ -55,7 +55,7 @@ namespace SabreTools ) ) ); - if (!Directory.Exists(_outdir)) + if (_outdir != "" && !Directory.Exists(_outdir)) { Directory.CreateDirectory(_outdir); } diff --git a/DATabase/DATabase.cs b/DATabase/DATabase.cs index 7c234eaf..5c29ba91 100644 --- a/DATabase/DATabase.cs +++ b/DATabase/DATabase.cs @@ -15,7 +15,7 @@ namespace SabreTools private static Logger logger; private static string _dbName = "DATabase.sqlite"; private static string _connectionString = "Data Source=" + _dbName + ";Version = 3;"; - private static string _version = "0.2.6.0"; + private static string _version = "0.2.6.1"; private static string _header = @"+-----------------------------------------------------------------------------+ | DATabase " + _version + @" | diff --git a/Deheader/Headerer.cs b/Deheader/Headerer.cs index 86831660..0d762380 100644 --- a/Deheader/Headerer.cs +++ b/Deheader/Headerer.cs @@ -13,7 +13,7 @@ namespace SabreTools /// class Headerer { - private static string _version = "0.2.6.0"; + private static string _version = "0.2.6.1"; private static string _dbName = "Headerer.sqlite"; private static string _connectionString = "Data Source=" + _dbName + ";Version = 3;"; private static Dictionary types; diff --git a/SabreToolsUI/SabreToolsUI.Designer.cs b/SabreToolsUI/SabreToolsUI.Designer.cs index 2b909fd8..08f817ed 100644 --- a/SabreToolsUI/SabreToolsUI.Designer.cs +++ b/SabreToolsUI/SabreToolsUI.Designer.cs @@ -261,7 +261,7 @@ this.MainMenuStrip = this.menuStrip1; this.Name = "SabreToolsUI"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "SabreTools UI 0.2.6.0"; + this.Text = "SabreTools UI 0.2.6.1"; this.menuStrip1.ResumeLayout(false); this.menuStrip1.PerformLayout(); this.ResumeLayout(false);