[DesktopVRSwitch] Handle CVRWorld- Post Processing & FOV settings.

This commit is contained in:
NotAKidoS 2023-06-20 18:23:23 -05:00
parent 70ae268149
commit 900c6646af
17 changed files with 62 additions and 48 deletions

View file

@ -47,14 +47,8 @@ class CVRWorldPatches
{
[HarmonyPostfix]
[HarmonyPatch(typeof(CVRWorld), nameof(CVRWorld.SetDefaultCamValues))]
static void Postfix_CVRWorld_SetDefaultCamValues()
{
ReferenceCameraPatch.OnWorldLoad();
}
[HarmonyPostfix]
[HarmonyPatch(typeof(CVRWorld), nameof(CVRWorld.CopyRefCamValues))]
static void Postfix_CVRWorld_CopyRefCamValues()
static void Postfix_CVRWorld_HandleCamValues()
{
ReferenceCameraPatch.OnWorldLoad();
}
@ -66,7 +60,7 @@ class CameraFacingObjectPatches
[HarmonyPatch(typeof(CameraFacingObject), nameof(CameraFacingObject.Start))]
static void Postfix_CameraFacingObject_Start(ref CameraFacingObject __instance)
{
__instance.gameObject.AddComponent<CameraFacingObjectTracker>()._cameraFacingObject = __instance;
__instance.gameObject.AddComponent<CameraFacingObjectTracker>();
}
}