Group instances

This commit is contained in:
Natsumi
2023-06-02 21:22:31 +12:00
parent ada39a05a7
commit fc4d94c279
4 changed files with 97 additions and 5 deletions

View File

@@ -239,7 +239,8 @@ namespace VRCX
ParseLogOnAudioConfigurationChanged(fileInfo, logContext, line, offset) ||
ParseLogScreenshot(fileInfo, logContext, line, offset) ||
ParseLogStringDownload(fileInfo, logContext, line, offset) ||
ParseLogImageDownload(fileInfo, logContext, line, offset))
ParseLogImageDownload(fileInfo, logContext, line, offset) ||
ParseVoteKick(fileInfo, logContext, line, offset))
{
}
}
@@ -1057,6 +1058,24 @@ namespace VRCX
});
return true;
}
private bool ParseVoteKick(FileInfo fileInfo, LogContext logContext, string line, int offset)
{
// 2023.06.02 01:08:04 Log - [Behaviour] Received executive message: You have been kicked from the instance by majority vote
// 2023.06.02 01:11:58 Log - [Behaviour] You have been kicked from this world for an hour.
if (string.Compare(line, offset, "[Behaviour] Received executive message: ", 0, 40, StringComparison.Ordinal) != 0)
return false;
AppendLog(new[]
{
fileInfo.Name,
ConvertLogTimeToISO8601(line),
"event",
line.Substring(offset + 40)
});
return true;
}
public string[][] Get()
{