Add extra check for directory creation; bump version number

This commit is contained in:
Matt Nadareski
2016-03-31 18:21:00 -07:00
parent e07c54bff3
commit 4c63c820ac
4 changed files with 4 additions and 4 deletions

View File

@@ -55,7 +55,7 @@ namespace SabreTools
) )
) )
); );
if (!Directory.Exists(_outdir)) if (_outdir != "" && !Directory.Exists(_outdir))
{ {
Directory.CreateDirectory(_outdir); Directory.CreateDirectory(_outdir);
} }

View File

@@ -15,7 +15,7 @@ namespace SabreTools
private static Logger logger; private static Logger logger;
private static string _dbName = "DATabase.sqlite"; private static string _dbName = "DATabase.sqlite";
private static string _connectionString = "Data Source=" + _dbName + ";Version = 3;"; 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 = private static string _header =
@"+-----------------------------------------------------------------------------+ @"+-----------------------------------------------------------------------------+
| DATabase " + _version + @" | | DATabase " + _version + @" |

View File

@@ -13,7 +13,7 @@ namespace SabreTools
/// </summary> /// </summary>
class Headerer 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 _dbName = "Headerer.sqlite";
private static string _connectionString = "Data Source=" + _dbName + ";Version = 3;"; private static string _connectionString = "Data Source=" + _dbName + ";Version = 3;";
private static Dictionary<string, int> types; private static Dictionary<string, int> types;

View File

@@ -261,7 +261,7 @@
this.MainMenuStrip = this.menuStrip1; this.MainMenuStrip = this.menuStrip1;
this.Name = "SabreToolsUI"; this.Name = "SabreToolsUI";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; 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.ResumeLayout(false);
this.menuStrip1.PerformLayout(); this.menuStrip1.PerformLayout();
this.ResumeLayout(false); this.ResumeLayout(false);