mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
make singleton
This commit is contained in:
@@ -11,10 +11,16 @@ namespace VRCX
|
||||
{
|
||||
public class VRCXStorage
|
||||
{
|
||||
public static VRCXStorage Instance { get; private set; }
|
||||
private static readonly ReaderWriterLockSlim m_Lock = new ReaderWriterLockSlim();
|
||||
private static Dictionary<string, string> m_Storage = new Dictionary<string, string>();
|
||||
private static bool m_Dirty;
|
||||
|
||||
static VRCXStorage()
|
||||
{
|
||||
Instance = new VRCXStorage();
|
||||
}
|
||||
|
||||
public static void Load()
|
||||
{
|
||||
m_Lock.EnterWriteLock();
|
||||
|
||||
Reference in New Issue
Block a user