From 13b050466f8cb254545bf139dba43eb8f243d372 Mon Sep 17 00:00:00 2001 From: Zingabopp Date: Fri, 23 Oct 2020 11:54:11 -0500 Subject: [PATCH] Version bump, 1.7.2. Updated for Beat Saber 1.12.2 --- BailOutMode/BailOutController.cs | 12 +----------- BailOutMode/manifest.json | 11 ++++++----- 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/BailOutMode/BailOutController.cs b/BailOutMode/BailOutController.cs index d36706a..bd1df8e 100644 --- a/BailOutMode/BailOutController.cs +++ b/BailOutMode/BailOutController.cs @@ -26,7 +26,7 @@ public bool IsEnabled { get { - return Configuration.instance.IsEnabled && (!isCampaign); + return Configuration.instance.IsEnabled && BS_Utils.Plugin.LevelData.Mode == BS_Utils.Gameplay.Mode.Standard; } } @@ -128,16 +128,6 @@ public void Start() private IEnumerator Initialize() { yield return new WaitForSeconds(0.5f); - //Logger.Trace("Checking for Campaign mode"); - if (GameObject.FindObjectsOfType().Count() > 0) - { - Logger.log.Info("Campaign mode detected, BailOutMode unavailable."); - isCampaign = true; - } - else - { - isCampaign = false; - } if ((GameManager != null) && (EnergyCounter != null) && IsEnabled) { Logger.log.Info("BailOutMode enabled"); diff --git a/BailOutMode/manifest.json b/BailOutMode/manifest.json index c0be59c..71e7e2a 100644 --- a/BailOutMode/manifest.json +++ b/BailOutMode/manifest.json @@ -4,14 +4,15 @@ "author": "Zingabopp", "id": "bailoutmode", "description": "Allows you to continue playing songs without posting a score if you fail, but allows you to post scores if you don't.", - "version": "1.7.1", - "gameVersion": "1.11.0", + "version": "1.7.2", + "gameVersion": "1.12.2", "dependsOn": { - "BS Utils": "^1.4.11", - "BeatSaberMarkupLanguage": "^1.3.3" + "BSIPA": "^4.1.3", + "BS Utils": "^1.6.0", + "BeatSaberMarkupLanguage": "^1.4.0" }, "links": { - "project-source": "https://github.com/Zingabopp/OBSControl", + "project-source": "https://github.com/Zingabopp/BailOutMode", "donate": "https://ko-fi.com/zingabopp" } } \ No newline at end of file