Skip to content

Commit

Permalink
Read from room join
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisFeline committed Jul 15, 2024
1 parent 206bea1 commit 79c84c7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Utils/LogWatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private void LogTick(object? sender, EventArgs? e)
}

if (SkipParsedLogs)
SetParsedPos(logContext.DateKey, logContext.Position, firstRun);
SetParsedPos(logContext.DateKey, isOlder ? logContext.Position : logContext.RoomReadPos, firstRun);
}
}

Expand Down Expand Up @@ -246,6 +246,8 @@ private bool ParseLocation(string line, DateTime lineDate, LogContext logContext
var worldName = line.Substring(index).Trim('\n', '\r');
logContext.Enter(worldName, lineDate);

logContext.RoomReadPos = logContext.Position;

return true;
}

Expand Down Expand Up @@ -299,6 +301,7 @@ public class LogContext
public string? DisplayName;

// Recent Instance info
public long RoomReadPos { get; set; }
public string? RoomName { get; private set; }
public DateTime RoomDate { get; private set; }
public readonly HashSet<string> Players;
Expand Down

0 comments on commit 79c84c7

Please sign in to comment.