A static class in Alta.XRManagement, the global namespace.
Works out which XR mode to start in from the command line: /fly for no VR, -vrmode or /vrmode with valve or openvr for the Valve loader, and OpenXR otherwise.
Fields
2 private and internal fields
| Member | What it is |
|---|
private const TownshipXRMode DefaultMode | The mode used when nothing on the command line says otherwise (OpenXR). |
private static readonly Logger logger | NLog logger for this class. |
Methods
| Member | What it is |
|---|
static TownshipXRMode GetCommandXRMode() | Reads the XR mode from the command line. |
2 private and internal methods
| Member | What it is |
|---|
private static bool ContainsValveKeyword(string commandString) | True when the argument is exactly valve or openvr. |
private static TownshipXRMode GetCommandMode(IReadOnlyList<string> args, TownshipXRMode commandMode) | Returns Valve when the vrmode argument names it; otherwise logs a warning and keeps the default. |