-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
052e6f1
commit e2bf089
Showing
7 changed files
with
62 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using BetterBeatSaber.Interop; | ||
using BetterBeatSaber.Mixin.Attributes; | ||
using BetterBeatSaber.Mixin.Enums; | ||
|
||
using IPA.Loader; | ||
|
||
namespace BetterBeatSaber.Interops; | ||
|
||
internal sealed class HitScoreVisualizer : Interop<HitScoreVisualizer> { | ||
|
||
protected override string Plugin => "HitScoreVisualizer"; | ||
|
||
protected override void Init(PluginMetadata pluginMetadata) => | ||
Logger.Warn("HitScoreVisualizer has been unpatched, it won't run until HitScore is disabled in Extras and after the game has been restarted"); | ||
|
||
// ReSharper disable UnusedType.Global | ||
// ReSharper disable UnusedMember.Local | ||
// ReSharper disable InconsistentNaming | ||
|
||
[Mixin("HitScoreVisualizer", "HitScoreVisualizer.Installers.HsvMenuInstaller")] | ||
[Mixin("HitScoreVisualizer", "HitScoreVisualizer.Installers.HsvAppInstaller")] | ||
internal static class HitScoreVisualizerMixin { | ||
|
||
[MixinMethod(nameof(InstallBindings), MixinAt.Pre)] | ||
private static bool InstallBindings() => !BetterBeatSaberConfig.Instance.HitScoreEnable.CurrentValue; | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters