mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 06:43:51 +02:00
make singleton
This commit is contained in:
@@ -20,6 +20,7 @@ namespace VRCX
|
||||
|
||||
public class LogWatcher
|
||||
{
|
||||
public static LogWatcher Instance { get; private set; }
|
||||
private static readonly ReaderWriterLockSlim m_Lock = new ReaderWriterLockSlim();
|
||||
private static List<string[]> m_GameLog = new List<string[]>();
|
||||
private static Thread m_Thread;
|
||||
@@ -28,6 +29,11 @@ namespace VRCX
|
||||
// NOTE
|
||||
// FileSystemWatcher() is unreliable
|
||||
|
||||
static LogWatcher()
|
||||
{
|
||||
Instance = new LogWatcher();
|
||||
}
|
||||
|
||||
public static void Init()
|
||||
{
|
||||
m_Thread = new Thread(() =>
|
||||
|
||||
Reference in New Issue
Block a user