Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qubqub committed Dec 11, 2024
1 parent 4727d3a commit 1913a6e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Entities/LogFileWatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,6 @@ private bool ParseLine(LogLine line, List<RoundInfo> round, LogRound logRound) {
Stats.ConnectedToServerDate = line.Date;
int ipIndex = line.Line.IndexOf("IP:", StringComparison.OrdinalIgnoreCase) + 3;
Stats.LastServerIp = line.Line.Substring(ipIndex);

}
} else if ((index = line.Line.IndexOf("[HandleSuccessfulLogin] Selected show is ", StringComparison.OrdinalIgnoreCase)) != -1) {
int index2 = line.Line.IndexOf(" IsUltimatePartyEpisode:");
Expand All @@ -800,9 +799,10 @@ private bool ParseLine(LogLine line, List<RoundInfo> round, LogRound logRound) {
if ((DateTime.UtcNow - Stats.ConnectedToServerDate).TotalMinutes <= 40) {
this.UpdateServerConnectionLog(this.threadLocalVariable.Value.currentSessionId, this.threadLocalVariable.Value.selectedShowId);
}
} else if ((index = line.Line.IndexOf("[StateGameLoading] Created UGC round: ", StringComparison.OrdinalIgnoreCase)) != -1) {
this.threadLocalVariable.Value.creativeShareCode = line.Line.Substring(index + 42, 14);
this.threadLocalVariable.Value.useShareCode = true;
} else if ((index = line.Line.IndexOf("[RoundLoader] Load UGC via share code: ", StringComparison.OrdinalIgnoreCase)) != -1) {
if (string.Equals(this.threadLocalVariable.Value.selectedShowId, "casual_show") || string.Equals(this.threadLocalVariable.Value.selectedShowId, "spotlight_mode")) {
this.threadLocalVariable.Value.creativeShareCode = line.Line.Substring(index + 39, 14);
}
} else if ((index = line.Line.IndexOf("[RoundLoader] LoadGameLevelSceneASync COMPLETE for scene ", StringComparison.OrdinalIgnoreCase)) != -1) {
if (line.Date > Stats.LastRoundLoad) {
Stats.LastRoundLoad = line.Date;
Expand Down

0 comments on commit 1913a6e

Please sign in to comment.