Skip to content

Commit

Permalink
Fixed rounded images shader and playlist selection
Browse files Browse the repository at this point in the history
  • Loading branch information
NSGolova committed Nov 15, 2024
1 parent 5b86389 commit 3cd3917
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/8_UI/MainMenu/Modals/EventDetailsDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
using BeatSaberMarkupLanguage.Attributes;
using HMUI;
using JetBrains.Annotations;
using System;
using System.Threading.Tasks;
using TMPro;
using UnityEngine;

Expand Down Expand Up @@ -57,13 +59,14 @@ private void HandleDownloadButtonClicked() {
StartCoroutine(PlaylistRequest.SendRequest(Context.playlistId.ToString(), OnSuccess, OnFail));
return;

void OnSuccess(byte[] bytes) {
async void OnSuccess(byte[] bytes) {
var filename = Context.name.Replace(" ", "_");
FileManager.DeletePlaylist(filename);

if (FileManager.TrySaveRankedPlaylist(filename, bytes)) {
PlaylistsLibInterop.TryRefreshPlaylists(true);
SongCore.Loader.Instance.RefreshSongs(false);
await Task.Delay(TimeSpan.FromSeconds(2));

var playlist = PlaylistsLibInterop.TryFindPlaylist(filename);
if (playlist != null) {
Expand Down
Binary file modified Source/9_Resources/AssetBundles/asset_bundle
Binary file not shown.

0 comments on commit 3cd3917

Please sign in to comment.