Skip to content

Commit

Permalink
Added misses placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
TheXorog committed Oct 25, 2021
1 parent e62df9d commit c23bf24
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions OBSControl/DataPullerWebSocket/DataPuller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@ internal static void HandleFile(DataPullerObjects.DataPullerMain BeatmapInfo, Da

if (NewName.Contains("<raw-score>"))
NewName = NewName.Replace("<raw-score>", $"{PerformanceInfo.Score}");

if (NewName.Contains("<misses>"))
NewName = NewName.Replace("<misses>", $"{PerformanceInfo.Misses}");
}
else
{
Expand All @@ -349,6 +352,9 @@ internal static void HandleFile(DataPullerObjects.DataPullerMain BeatmapInfo, Da

if (NewName.Contains("<raw-score>"))
NewName = NewName.Replace("<raw-score>", $"0");

if (NewName.Contains("<misses>"))
NewName = NewName.Replace("<misses>", $"0");
}

if (Objects.LoadedSettings.DeleteIfShorterThan > OBSWebSocketObjects.RecordingSeconds)
Expand Down
6 changes: 6 additions & 0 deletions OBSControl/HttpStatusWebSocket/HttpStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,9 @@ internal static void HandleFile(HttpStatusObjects.Beatmap BeatmapInfo, HttpStatu

if (NewName.Contains("<raw-score>"))
NewName = NewName.Replace("<raw-score>", $"{PerformanceInfo.rawScore}");

if (NewName.Contains("<misses>"))
NewName = NewName.Replace("<misses>", $"{PerformanceInfo.missedNotes}");
}
else
{
Expand All @@ -281,6 +284,9 @@ internal static void HandleFile(HttpStatusObjects.Beatmap BeatmapInfo, HttpStatu

if (NewName.Contains("<raw-score>"))
NewName = NewName.Replace("<raw-score>", $"0");

if (NewName.Contains("<misses>"))
NewName = NewName.Replace("<misses>", $"0");
}

if (Objects.LoadedSettings.DeleteIfShorterThan > OBSWebSocketObjects.RecordingSeconds)
Expand Down

0 comments on commit c23bf24

Please sign in to comment.