We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1867ad9 commit 92dafd2Copy full SHA for 92dafd2
GChan/Data/DataController.cs
@@ -1,4 +1,5 @@
1
using GChan.Trackers;
2
+using System;
3
using System.Collections.Generic;
4
using System.Data.SQLite;
5
using System.IO;
@@ -14,7 +15,7 @@ class DataController
14
15
16
private const string DATABASE_FILENAME = "trackers.db";
17
private static readonly string DATABASE_FOLDERNAME = "data";
- private static readonly string DATABASE_PATH = DATABASE_FOLDERNAME + "/" + DATABASE_FILENAME;
18
+ private static readonly string DATABASE_PATH = Path.Combine(AppContext.BaseDirectory, DATABASE_FOLDERNAME, DATABASE_FILENAME);
19
private static readonly string DATABASE_CONNECTION_STRING = "DataSource=" + DATABASE_PATH;
20
21
/// <summary>
0 commit comments