Skip to content

Commit

Permalink
barebones support done
Browse files Browse the repository at this point in the history
  • Loading branch information
Parapass authored Apr 27, 2024
1 parent f93cfef commit 9c90613
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ModAssistant/Pages/Options.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public partial class Options : Page
public bool ReinstallInstalledMods { get; set; }
public bool ModelSaberProtocolHandlerEnabled { get; set; }
public bool BeatSaverProtocolHandlerEnabled { get; set; }
public bool ScoreSaberProtocolHandlerEnabled { get; set; }
public bool PlaylistsProtocolHandlerEnabled { get; set; }
public bool CloseWindowOnFinish { get; set; }
public string LogURL { get; private set; }
Expand Down Expand Up @@ -55,6 +56,7 @@ public void UpdateHandlerStatus()
{
ModelSaberProtocolHandlerEnabled = OneClickInstaller.IsRegistered("modelsaber");
BeatSaverProtocolHandlerEnabled = OneClickInstaller.IsRegistered("beatsaver");
ScoreSaberProtocolHandlerEnabled = OneClickInstaller.IsRegistered("web+bsmap");
PlaylistsProtocolHandlerEnabled = OneClickInstaller.IsRegistered("bsplaylist");
}

Expand Down Expand Up @@ -154,6 +156,17 @@ public void BeatSaverProtocolHandler_Unchecked(object sender, RoutedEventArgs e)
{
OneClickInstaller.Unregister("beatsaver");
}

public void ScoreSaberProtocolHandler_Checked(object sender, RoutedEventArgs e)
{
OneClickInstaller.Register("web+bsmap", Description: "URL:web+bsmap OneClick Install");
}

public void ScoreSaberProtocolHandler_Unchecked(object sender, RoutedEventArgs e)
{
OneClickInstaller.Unregister("web+bsmap");
}

public void PlaylistsProtocolHandler_Checked(object sender, RoutedEventArgs e)
{
OneClickInstaller.Register("bsplaylist", Description: "URL:BeatSaver Playlist OneClick Install");
Expand Down

0 comments on commit 9c90613

Please sign in to comment.