Move friendLog to SQLite

This commit is contained in:
Natsumi
2021-07-02 20:16:19 +12:00
parent 6cb5f2028d
commit 08a32e27f0
3 changed files with 195 additions and 74 deletions

View File

@@ -1,4 +1,4 @@
// Copyright(c) 2019 pypy. All rights reserved.
// Copyright(c) 2019 pypy. All rights reserved.
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
@@ -122,5 +122,18 @@ namespace VRCX
m_Lock.ExitWriteLock();
}
}
public string GetAll()
{
m_Lock.EnterReadLock();
try
{
return System.Text.Json.JsonSerializer.Serialize(m_Storage);
}
finally
{
m_Lock.ExitReadLock();
}
}
}
}