Skip to content

Commit 5d8d977

Browse files
authored
Merge pull request #698 from qsb-dev/dev
1.2.2
2 parents 63066cf + 03ec46e commit 5d8d977

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

QSB/TimeSync/Patches/TimePatches.cs

+14-4
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,21 @@ public static void PlayerCameraEffectController_WakeUp(PlayerCameraEffectControl
3232

3333
[HarmonyPrefix]
3434
[HarmonyPatch(typeof(OWTime), nameof(OWTime.Pause))]
35-
public static bool StopPausing(OWTime.PauseType pauseType)
36-
=> pauseType
37-
is OWTime.PauseType.Initializing
35+
public static bool StopPausing(ref OWTime.PauseType pauseType)
36+
{
37+
if (pauseType is OWTime.PauseType.Initializing
3838
or OWTime.PauseType.Streaming
39-
or OWTime.PauseType.Loading;
39+
or OWTime.PauseType.Loading)
40+
{
41+
return true;
42+
}
43+
else
44+
{
45+
// stop NomaiVR from pausing manually grrrrrrrrrrr
46+
pauseType = OWTime.PauseType.Menu;
47+
return false;
48+
}
49+
}
4050

4151
[HarmonyPostfix]
4252
[HarmonyPatch(typeof(SubmitActionSkipToNextLoop), nameof(SubmitActionSkipToNextLoop.AdvanceToNewTimeLoop))]

QSB/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"author": "Nebula, John, Alek, & Rai",
55
"name": "Quantum Space Buddies",
66
"uniqueName": "Raicuparta.QuantumSpaceBuddies",
7-
"version": "1.2.1",
7+
"version": "1.2.2",
88
"owmlVersion": "2.14.0",
99
"dependencies": [ "_nebula.MenuFramework", "JohnCorby.VanillaFix" ],
1010
"pathsToPreserve": [ "debugsettings.json" ],

0 commit comments

Comments
 (0)