mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 14:56:06 +02:00
not using destination set
This commit is contained in:
+1
-43
@@ -22,7 +22,6 @@ 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;
|
||||||
|
|
||||||
@@ -48,7 +47,6 @@ 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
|
||||||
@@ -124,42 +122,7 @@ namespace VRCX
|
|||||||
if (s.Length > 35)
|
if (s.Length > 35)
|
||||||
{
|
{
|
||||||
var c = s[35];
|
var c = s[35];
|
||||||
if (c == 'V')
|
if (c == 'R')
|
||||||
{
|
|
||||||
// 2020.01.20 21:21:18 Log - [VRCFlowManagerVRC] Destination set: wrld_4432ea9b-729c-46e3-8eaf-846aa0a37fdd
|
|
||||||
if (s.Length > 71 &&
|
|
||||||
string.Compare(s, 34, "[VRCFlowManagerVRC] Destination set: ", 0, "[VRCFlowManagerVRC] Destination set: ".Length, StringComparison.Ordinal) == 0)
|
|
||||||
{
|
|
||||||
var destination = s.Substring(71);
|
|
||||||
if (destination.Length == 0)
|
|
||||||
{
|
|
||||||
// loading screen
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (destination.Split(':').Length == 1)
|
|
||||||
{
|
|
||||||
// no instance info
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
m_RecentDestination = destination;
|
|
||||||
var item = new[]
|
|
||||||
{
|
|
||||||
ConvertLogTimeToISO8601(s),
|
|
||||||
"Location",
|
|
||||||
destination
|
|
||||||
};
|
|
||||||
m_Lock.EnterWriteLock();
|
|
||||||
try
|
|
||||||
{
|
|
||||||
m_GameLog.Add(item);
|
|
||||||
}
|
|
||||||
finally
|
|
||||||
{
|
|
||||||
m_Lock.ExitWriteLock();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (c == 'R')
|
|
||||||
{
|
{
|
||||||
// 2019.07.31 22:26:24 Log - [RoomManager] Joining wrld_4432ea9b-729c-46e3-8eaf-846aa0a37fdd:6974~private(usr_4f76a584-9d4b-46f6-8209-8305eb683661)~nonce(0000000000000000000000000000000000000000000000000000000000000000)
|
// 2019.07.31 22:26:24 Log - [RoomManager] Joining wrld_4432ea9b-729c-46e3-8eaf-846aa0a37fdd:6974~private(usr_4f76a584-9d4b-46f6-8209-8305eb683661)~nonce(0000000000000000000000000000000000000000000000000000000000000000)
|
||||||
// 2019.07.31 22:26:24 Log - [RoomManager] Joining or Creating Room: VRChat Home
|
// 2019.07.31 22:26:24 Log - [RoomManager] Joining or Creating Room: VRChat Home
|
||||||
@@ -168,11 +131,6 @@ 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 (m_RecentDestination.Equals(location))
|
|
||||||
{
|
|
||||||
m_RecentDestination = string.Empty; // only once
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
var item = new[]
|
var item = new[]
|
||||||
{
|
{
|
||||||
ConvertLogTimeToISO8601(s),
|
ConvertLogTimeToISO8601(s),
|
||||||
|
|||||||
Reference in New Issue
Block a user