mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 06:46:04 +02:00
bug fix
This commit is contained in:
+5
-4
@@ -22,6 +22,7 @@ namespace VRCX
|
|||||||
{
|
{
|
||||||
private static readonly ReaderWriterLockSlim m_Lock = new ReaderWriterLockSlim();
|
private static readonly ReaderWriterLockSlim m_Lock = new ReaderWriterLockSlim();
|
||||||
private static List<string[]> m_GameLog = new List<string[]>();
|
private static List<string[]> m_GameLog = new List<string[]>();
|
||||||
|
private static string m_RecentDestination = string.Empty;
|
||||||
private static Thread m_Thread;
|
private static Thread m_Thread;
|
||||||
private static bool m_Reset;
|
private static bool m_Reset;
|
||||||
|
|
||||||
@@ -47,6 +48,7 @@ namespace VRCX
|
|||||||
if (m_Reset)
|
if (m_Reset)
|
||||||
{
|
{
|
||||||
m_Reset = false;
|
m_Reset = false;
|
||||||
|
m_RecentDestination = string.Empty;
|
||||||
D.Clear();
|
D.Clear();
|
||||||
m_Lock.EnterWriteLock();
|
m_Lock.EnterWriteLock();
|
||||||
try
|
try
|
||||||
@@ -110,7 +112,6 @@ namespace VRCX
|
|||||||
|
|
||||||
public static void Parse(FileInfo info, ref long position)
|
public static void Parse(FileInfo info, ref long position)
|
||||||
{
|
{
|
||||||
var recentDestination = string.Empty;
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
using (var stream = info.Open(FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
|
using (var stream = info.Open(FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
|
||||||
@@ -140,7 +141,7 @@ namespace VRCX
|
|||||||
// no instance info
|
// no instance info
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
recentDestination = destination;
|
m_RecentDestination = destination;
|
||||||
var item = new[]
|
var item = new[]
|
||||||
{
|
{
|
||||||
ConvertLogTimeToISO8601(s),
|
ConvertLogTimeToISO8601(s),
|
||||||
@@ -167,9 +168,9 @@ namespace VRCX
|
|||||||
string.Compare(s, 56, "or ", 0, "or ".Length, StringComparison.Ordinal) != 0)
|
string.Compare(s, 56, "or ", 0, "or ".Length, StringComparison.Ordinal) != 0)
|
||||||
{
|
{
|
||||||
var location = s.Substring(56);
|
var location = s.Substring(56);
|
||||||
if (recentDestination.Equals(location))
|
if (m_RecentDestination.Equals(location))
|
||||||
{
|
{
|
||||||
recentDestination = string.Empty; // only once
|
m_RecentDestination = string.Empty; // only once
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
var item = new[]
|
var item = new[]
|
||||||
|
|||||||
Reference in New Issue
Block a user