make singleton

This commit is contained in:
pypy
2020-03-21 16:39:35 +09:00
parent 336241c4c7
commit a9d454308b
6 changed files with 36 additions and 5 deletions

View File

@@ -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();