Initial Release

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.
This commit is contained in:
NotAKidoS 2022-10-14 02:00:05 -05:00
parent d033d3750e
commit e6784b967e
5 changed files with 80 additions and 30 deletions

View file

@ -0,0 +1,19 @@
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();
}
}
}