mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Use correct path for database.
This commit is contained in:
@@ -155,6 +155,8 @@ namespace DiscImageChef.Settings
|
||||
/// </summary>
|
||||
public static string StatsPath { get; private set; }
|
||||
|
||||
public static string DbPath { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Loads settings
|
||||
/// </summary>
|
||||
@@ -163,6 +165,7 @@ namespace DiscImageChef.Settings
|
||||
Current = new DicSettings();
|
||||
PlatformID ptId = DetectOS.GetRealPlatformID();
|
||||
string homePath = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
|
||||
DbPath = "discimagechef.db";
|
||||
|
||||
try
|
||||
{
|
||||
@@ -180,6 +183,8 @@ namespace DiscImageChef.Settings
|
||||
string dicPath = Path.Combine(appSupportPath, "DiscImageChef");
|
||||
if(!Directory.Exists(dicPath)) Directory.CreateDirectory(dicPath);
|
||||
|
||||
DbPath = Path.Combine(dicPath, DbPath);
|
||||
|
||||
ReportsPath = Path.Combine(dicPath, "Reports");
|
||||
if(!Directory.Exists(ReportsPath)) Directory.CreateDirectory(ReportsPath);
|
||||
|
||||
@@ -202,6 +207,8 @@ namespace DiscImageChef.Settings
|
||||
string dicPath = Path.Combine(appSupportPath, "DiscImageChef");
|
||||
if(!Directory.Exists(dicPath)) Directory.CreateDirectory(dicPath);
|
||||
|
||||
DbPath = Path.Combine(dicPath, DbPath);
|
||||
|
||||
ReportsPath = Path.Combine(dicPath, "Reports");
|
||||
if(!Directory.Exists(ReportsPath)) Directory.CreateDirectory(ReportsPath);
|
||||
|
||||
@@ -227,6 +234,8 @@ namespace DiscImageChef.Settings
|
||||
|
||||
if(!Directory.Exists(dicPath)) Directory.CreateDirectory(dicPath);
|
||||
|
||||
DbPath = Path.Combine(dicPath, DbPath);
|
||||
|
||||
ReportsPath = Path.Combine(dicPath, "Reports");
|
||||
if(!Directory.Exists(ReportsPath)) Directory.CreateDirectory(ReportsPath);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user