mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-04 07:19:22 +00:00
[DesktopVRSwitch] Further cleanup
This commit is contained in:
parent
6774c3ff6d
commit
f89a41772b
5 changed files with 14 additions and 23 deletions
|
@ -16,14 +16,6 @@ public class CheckVRTracker : VRModeTracker
|
|||
|
||||
private void OnPostSwitch(bool intoVR)
|
||||
{
|
||||
CheckVR _checkVR = CheckVR.Instance;
|
||||
if (_checkVR == null)
|
||||
{
|
||||
DesktopVRSwitch.Logger.Error("Error while getting CheckVR!");
|
||||
return;
|
||||
}
|
||||
DesktopVRSwitch.Logger.Msg($"Setting CheckVR hasVrDeviceLoaded to {intoVR}.");
|
||||
|
||||
_checkVR.hasVrDeviceLoaded = intoVR;
|
||||
CheckVR.Instance.hasVrDeviceLoaded = intoVR;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue