Skip to content

Commit

Permalink
BS 1.38.0 Support
Browse files Browse the repository at this point in the history
  • Loading branch information
NSGolova committed Oct 8, 2024
1 parent cbfa9e8 commit fd7fb5d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Source/2_Core/Replayer/ReplayPauseController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private void OnDestroy() {
}

private void UnsubscribeStandardEvents() {
_vrPlatformHelper.inputFocusWasCapturedEvent -= _pauseController.HandleInputFocusWasCaptured;
_vrPlatformHelper.inputFocusWasCapturedEvent -= _pauseController.HandleFocusWasCaptured;
_vrPlatformHelper.hmdUnmountedEvent -= _pauseController.HandleHMDUnmounted;
_pauseMenuManager.didFinishResumeAnimationEvent -= _pauseController.HandlePauseMenuManagerDidFinishResumeAnimation;
_pauseMenuManager.didPressContinueButtonEvent -= _pauseController.HandlePauseMenuManagerDidPressContinueButton;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ internal class BeatmapPreviewCell : ReeUIComponentV2 {

private class NotSelectedPreviewBeatmapLevel : BeatmapLevel {
private class PreviewMediaData : IPreviewMediaData {
public Task<Sprite> GetCoverSpriteAsync(CancellationToken cancellationToken) => Task.FromResult(BundleLoader.UnknownIcon);
public Task<Sprite> GetCoverSpriteAsync() => Task.FromResult(BundleLoader.UnknownIcon);

public Task<AudioClip> GetPreviewAudioClip(CancellationToken cancellationToken) => throw new NotImplementedException();
public Task<AudioClip> GetPreviewAudioClip() => throw new NotImplementedException();

public void UnloadCoverSprite() {}

public void UnloadPreviewAudioClip() { }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ public void SetBeatmapLevel(BeatmapLevel level) {
LoadAndAssignImage(level);
}
private async void LoadAndAssignImage(BeatmapLevel level) {
var token = new CancellationTokenSource().Token;
_songPreviewImage.sprite = await level.previewMediaData.GetCoverSpriteAsync(token);
_songPreviewImage.sprite = await level.previewMediaData.GetCoverSpriteAsync();
}

#endregion
Expand Down

0 comments on commit fd7fb5d

Please sign in to comment.