You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: BeatSaberCustomCampaigns/Challenge.cs
+16-5Lines changed: 16 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@
6
6
usingSystem.Linq;
7
7
usingIPA.Utilities;
8
8
usingUnityEngine;
9
+
usingUnityEngine.Networking;
10
+
usingSystem.Globalization;
9
11
10
12
namespaceBeatSaberCustomCampaigns
11
13
{
@@ -14,6 +16,7 @@ public class Challenge
14
16
{
15
17
publicstringname;
16
18
publicstringsongid;
19
+
publicstringhash="";
17
20
publicstringcustomDownloadURL="";
18
21
publicstringcharacteristic="Standard";
19
22
publicBeatmapDifficultydifficulty;
@@ -42,9 +45,20 @@ public CustomPreviewBeatmapLevel FindSong()
42
45
{
43
46
try
44
47
{
45
-
CustomPreviewBeatmapLevellevel=Loader.CustomLevels.Values.First(x =>x.customLevelPath.Contains("\\"+songid+(customDownloadURL==""?" ":"")));//Including the space is to ensure that if they have a map with an old style beatsaver id it won't be falsely detected
0 commit comments