From c68a4254da178a364941e05b199137e5fca2da78 Mon Sep 17 00:00:00 2001 From: _nebula <41904486+misternebula@users.noreply.github.com> Date: Tue, 17 Dec 2024 02:02:20 +0000 Subject: [PATCH 1/2] fix nomaivr pausing when reading hopefully --- QSB/TimeSync/Patches/TimePatches.cs | 18 ++++++++++++++---- QSB/manifest.json | 2 +- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/QSB/TimeSync/Patches/TimePatches.cs b/QSB/TimeSync/Patches/TimePatches.cs index 968e639f5..1868b840f 100644 --- a/QSB/TimeSync/Patches/TimePatches.cs +++ b/QSB/TimeSync/Patches/TimePatches.cs @@ -32,11 +32,21 @@ public static void PlayerCameraEffectController_WakeUp(PlayerCameraEffectControl [HarmonyPrefix] [HarmonyPatch(typeof(OWTime), nameof(OWTime.Pause))] - public static bool StopPausing(OWTime.PauseType pauseType) - => pauseType - is OWTime.PauseType.Initializing + public static bool OWTime_Pause(ref OWTime.PauseType pauseType) + { + if (pauseType is OWTime.PauseType.Initializing or OWTime.PauseType.Streaming - or OWTime.PauseType.Loading; + or OWTime.PauseType.Loading) + { + return true; + } + else + { + // stop NomaiVR from pausing manually grrrrrrrrrrr + pauseType = OWTime.PauseType.Menu; + return false; + } + } [HarmonyPostfix] [HarmonyPatch(typeof(SubmitActionSkipToNextLoop), nameof(SubmitActionSkipToNextLoop.AdvanceToNewTimeLoop))] diff --git a/QSB/manifest.json b/QSB/manifest.json index dbb988614..c6dd9f7c5 100644 --- a/QSB/manifest.json +++ b/QSB/manifest.json @@ -4,7 +4,7 @@ "author": "Nebula, John, Alek, & Rai", "name": "Quantum Space Buddies", "uniqueName": "Raicuparta.QuantumSpaceBuddies", - "version": "1.2.1", + "version": "1.2.2", "owmlVersion": "2.14.0", "dependencies": [ "_nebula.MenuFramework", "JohnCorby.VanillaFix" ], "pathsToPreserve": [ "debugsettings.json" ], From 03ec46eaad254a1ac65032f5baffd7653f5c62a5 Mon Sep 17 00:00:00 2001 From: _nebula <41904486+misternebula@users.noreply.github.com> Date: Tue, 17 Dec 2024 02:06:14 +0000 Subject: [PATCH 2/2] change method name back because im scared of breaking things --- QSB/TimeSync/Patches/TimePatches.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QSB/TimeSync/Patches/TimePatches.cs b/QSB/TimeSync/Patches/TimePatches.cs index 1868b840f..4a24eb94e 100644 --- a/QSB/TimeSync/Patches/TimePatches.cs +++ b/QSB/TimeSync/Patches/TimePatches.cs @@ -32,7 +32,7 @@ public static void PlayerCameraEffectController_WakeUp(PlayerCameraEffectControl [HarmonyPrefix] [HarmonyPatch(typeof(OWTime), nameof(OWTime.Pause))] - public static bool OWTime_Pause(ref OWTime.PauseType pauseType) + public static bool StopPausing(ref OWTime.PauseType pauseType) { if (pauseType is OWTime.PauseType.Initializing or OWTime.PauseType.Streaming