mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 14:23:51 +02:00
make singleton
This commit is contained in:
@@ -9,9 +9,15 @@ namespace VRCX
|
||||
{
|
||||
public class SQLite
|
||||
{
|
||||
public static SQLite Instance { get; private set; }
|
||||
private static readonly ReaderWriterLockSlim m_Lock = new ReaderWriterLockSlim();
|
||||
private static SQLiteConnection m_Connection;
|
||||
|
||||
static SQLite()
|
||||
{
|
||||
Instance = new SQLite();
|
||||
}
|
||||
|
||||
public static void Init()
|
||||
{
|
||||
m_Connection = new SQLiteConnection($"Data Source={Application.StartupPath}/VRCX.sqlite;Version=3");
|
||||
|
||||
Reference in New Issue
Block a user