diff --git a/ModAssistant/Classes/OneClickInstaller.cs b/ModAssistant/Classes/OneClickInstaller.cs index fedf195c..59d81bfe 100644 --- a/ModAssistant/Classes/OneClickInstaller.cs +++ b/ModAssistant/Classes/OneClickInstaller.cs @@ -12,7 +12,7 @@ namespace ModAssistant { class OneClickInstaller { - private static readonly string[] Protocols = new[] { "modelsaber", "beatsaver", "bsplaylist" }; + private static readonly string[] Protocols = new[] { "modelsaber", "beatsaver", "bsplaylist", "web+bsmap" }; public static OneClickStatus Status = new OneClickStatus(); public static async Task InstallAsset(string link) @@ -28,6 +28,9 @@ public static async Task InstallAsset(string link) case "beatsaver": await BeatSaver(uri); break; + case "web+bsmap": + await ScoreSaber(uri); + break; case "bsplaylist": await Playlist(uri); break; @@ -56,6 +59,12 @@ private static async Task BeatSaver(Uri uri) await API.BeatSaver.GetFromKey(Key); } + private static async Task ScoreSaber(Uri uri) + { + string Hash = uri.Host; + await API.BeatSaver.GetFromHash(Hash); + } + private static async Task ModelSaber(Uri uri) { if (App.OCIWindow != "No" && App.OCIWindow != "Notify") Status.Show(); diff --git a/ModAssistant/Localisation/en.xaml b/ModAssistant/Localisation/en.xaml index 1065fa37..b21393e1 100644 --- a/ModAssistant/Localisation/en.xaml +++ b/ModAssistant/Localisation/en.xaml @@ -144,6 +144,7 @@ Reinstall Installed Mods Enable OneClick™ Installs BeatSaver + ScoreSaber ModelSaber Playlists Close window when finished diff --git a/ModAssistant/Pages/Options.xaml b/ModAssistant/Pages/Options.xaml index 431b14cf..53f024a8 100644 --- a/ModAssistant/Pages/Options.xaml +++ b/ModAssistant/Pages/Options.xaml @@ -196,6 +196,15 @@ Unchecked="BeatSaverProtocolHandler_Unchecked"/> +