This commit is contained in:
2dust 2024-02-08 16:22:38 +08:00
parent e2c836794b
commit ce94e0ba4d
2 changed files with 2 additions and 2 deletions

View file

@ -11,10 +11,11 @@ namespace v2rayN
private SQLiteConnection _db; private SQLiteConnection _db;
private SQLiteAsyncConnection _dbAsync; private SQLiteAsyncConnection _dbAsync;
private static readonly object objLock = new(); private static readonly object objLock = new();
public const string _configDB = "guiNDB.db";
public SqliteHelper() public SqliteHelper()
{ {
_connstr = Utils.GetConfigPath(Global.ConfigDB); _connstr = Utils.GetConfigPath(_configDB);
_db = new SQLiteConnection(_connstr, false); _db = new SQLiteConnection(_connstr, false);
_dbAsync = new SQLiteAsyncConnection(_connstr, false); _dbAsync = new SQLiteAsyncConnection(_connstr, false);
} }

View file

@ -30,7 +30,6 @@ namespace v2rayN
public const string PromotionUrl = @"aHR0cHM6Ly85LjIzNDQ1Ni54eXovYWJjLmh0bWw="; public const string PromotionUrl = @"aHR0cHM6Ly85LjIzNDQ1Ni54eXovYWJjLmh0bWw=";
public const string ConfigFileName = "guiNConfig.json"; public const string ConfigFileName = "guiNConfig.json";
public const string ConfigDB = "guiNDB.db";
public const string CoreConfigFileName = "config.json"; public const string CoreConfigFileName = "config.json";
public const string CorePreConfigFileName = "configPre.json"; public const string CorePreConfigFileName = "configPre.json";
public const string CoreSpeedtestConfigFileName = "configSpeedtest.json"; public const string CoreSpeedtestConfigFileName = "configSpeedtest.json";