mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
Fix U+031F funnies
This commit is contained in:
@@ -406,35 +406,29 @@ namespace VRCX
|
|||||||
|
|
||||||
// 2021.06.23 11:41:16 Log - [Behaviour] Initialized PlayerAPI "Natsumi-sama" is local
|
// 2021.06.23 11:41:16 Log - [Behaviour] Initialized PlayerAPI "Natsumi-sama" is local
|
||||||
|
|
||||||
if (line.Contains("] Initialized PlayerAPI \""))
|
if (line.Contains("] OnPlayerJoined"))
|
||||||
{
|
{
|
||||||
var lineOffset = line.LastIndexOf("] Initialized PlayerAPI \"");
|
var lineOffset = line.LastIndexOf("] OnPlayerJoined");
|
||||||
if (lineOffset < 0)
|
if (lineOffset < 0)
|
||||||
return false;
|
return false;
|
||||||
lineOffset += 25;
|
lineOffset += 17;
|
||||||
|
|
||||||
var pos = line.LastIndexOf("\" is ");
|
var userDisplayName = line.Substring(lineOffset);
|
||||||
if (pos < 0)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
var userType = line.Substring(pos + 5);
|
|
||||||
var userDisplayName = line.Substring(lineOffset, pos - lineOffset);
|
|
||||||
|
|
||||||
AppendLog(new[]
|
AppendLog(new[]
|
||||||
{
|
{
|
||||||
fileInfo.Name,
|
fileInfo.Name,
|
||||||
ConvertLogTimeToISO8601(line),
|
ConvertLogTimeToISO8601(line),
|
||||||
"player-joined",
|
"player-joined",
|
||||||
userDisplayName,
|
userDisplayName
|
||||||
userType,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (line.Contains("] OnPlayerLeft "))
|
if (line.Contains("] OnPlayerLeft") && !line.Contains("] OnPlayerLeftRoom"))
|
||||||
{
|
{
|
||||||
var lineOffset = line.LastIndexOf("] OnPlayerLeft ");
|
var lineOffset = line.LastIndexOf("] OnPlayerLeft");
|
||||||
if (lineOffset < 0)
|
if (lineOffset < 0)
|
||||||
return false;
|
return false;
|
||||||
lineOffset += 15;
|
lineOffset += 15;
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ class GameLogService {
|
|||||||
|
|
||||||
case 'player-joined':
|
case 'player-joined':
|
||||||
gameLog.userDisplayName = args[0];
|
gameLog.userDisplayName = args[0];
|
||||||
gameLog.userType = args[1];
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'player-left':
|
case 'player-left':
|
||||||
|
|||||||
Reference in New Issue
Block a user