mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
Added UIExpansionKit support, moved Harmony patches to own cs, added accidental feature that disables automatic state change, added option to lower FPS while in sleep state.
19 lines
No EOL
447 B
C#
19 lines
No EOL
447 B
C#
using HarmonyLib;
|
|
using ABI_RC.Core.Player;
|
|
|
|
namespace Blackout;
|
|
|
|
[HarmonyPatch]
|
|
internal class HarmonyPatches
|
|
{
|
|
//Support for changing VRMode during runtime.
|
|
[HarmonyPostfix]
|
|
[HarmonyPatch(typeof(PlayerSetup), "CalibrateAvatar")]
|
|
private static void CheckVRModeOnSwitch()
|
|
{
|
|
if (Blackout.inVR != PlayerSetup.Instance._inVr)
|
|
{
|
|
BlackoutController.Instance.SetupBlackoutInstance();
|
|
}
|
|
}
|
|
} |