Move config to AppData

This commit is contained in:
Natsumi
2021-08-03 01:45:44 +12:00
parent d0c520e678
commit a66ff77fce
5 changed files with 28 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
using CefSharp;
using CefSharp;
using System;
using System.Collections.Generic;
using System.Data.SQLite;
@@ -22,7 +22,7 @@ namespace VRCX
{
m_ConnectionLock = new ReaderWriterLockSlim();
var dataSource = Path.Combine(Program.BaseDirectory, "VRCX.sqlite3");
var dataSource = Path.Combine(Program.AppDataDirectory, "VRCX.sqlite3");
m_Connection = new SQLiteConnection($"Data Source=\"{dataSource}\";Version=3;PRAGMA locking_mode=NORMAL;PRAGMA busy_timeout=5000", true);
}