[DesktopVRSwitch] Stop being a baby.

???
This commit is contained in:
NotAKidoS 2023-06-21 14:06:12 -05:00
parent 133f5200b4
commit 6774c3ff6d
22 changed files with 205 additions and 169 deletions

View file

@ -16,16 +16,10 @@ public class PortableCameraTracker : VRModeTracker
private void OnPostSwitch(bool intoVR)
{
PortableCamera _portableCamera = PortableCamera.Instance;
if (_portableCamera == null)
{
DesktopVRSwitch.Logger.Error("Error while getting PortableCamera!");
return;
}
DesktopVRSwitch.Logger.Msg("Forcing PortableCamera canvas mirroring off.");
// Tell the game we are in mirror mode so it'll disable it (if enabled)
_portableCamera.mode = MirroringMode.Mirror;
_portableCamera.ChangeMirroring();
PortableCamera.Instance.mode = MirroringMode.Mirror;
PortableCamera.Instance.ChangeMirroring();
}
}