[Constants, Skippers/, Tools/] Fix header extract

Use full paths in the name of the database to avoid output folder issues during script runs and make sure that Skippers are created with the absolute bare minimum set.
This commit is contained in:
Matt Nadareski
2018-01-23 10:54:29 -08:00
parent 6b32360488
commit 6e47a1d809
5 changed files with 12 additions and 13 deletions

View File

@@ -3,6 +3,12 @@ using System.Reflection;
using SabreTools.Library.Tools;
#if MONO
using System.IO;
#else
using Alphaleonis.Win32.Filesystem;
#endif
namespace SabreTools.Library.Data
{
/// <summary>
@@ -92,8 +98,8 @@ namespace SabreTools.Library.Data
#region Database schema
public const string HeadererDbSchema = "Headerer";
public const string HeadererFileName = "Headerer.sqlite";
public const string HeadererConnectionString = "Data Source=" + HeadererFileName + ";Version = 3;";
public static string HeadererFileName = Path.Combine(Globals.ExeDir, "Headerer.sqlite");
public static string HeadererConnectionString = "Data Source=" + HeadererFileName + ";Version = 3;";
#endregion