Function is_vr

Source
pub fn is_vr() -> bool
Expand description

Returns true if the current execution environment is SkyrimVR.exe.

§When to use

  • Use this to simply distinguish VR from SE/AE, e.g., for branching based on class layout.

§When not to use

  • If you also need other runtime info from ModuleState. Calling this separately can cause redundant locking; prefer accessing ModuleState directly instead.

§Note

Internally uses ModuleState::map_or_init; returns false on init failure or if not VR.