Skip to content

Commit

Permalink
Revert fatal error on mapping name not found
Browse files Browse the repository at this point in the history
  • Loading branch information
Raicuparta committed Aug 12, 2020
1 parent b84e0d3 commit cf7199a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions NomaiVR/Input/VRActionInput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ public void Initialize()
_hand = _action.GetLocalizedOriginPart(SteamVR_Input_Sources.Any, new[] { EVRInputStringBits.VRInputString_Hand });
_source = _action.GetLocalizedOriginPart(SteamVR_Input_Sources.Any, new[] { EVRInputStringBits.VRInputString_InputSource });

if (string.IsNullOrEmpty(_hand) && string.IsNullOrEmpty(_source))
{
Logs.WriteError($"Could not find name for binding {_action.GetShortName()}.");
FatalErrorChecker.ThrowSteamVRError();
}
// TODO: need to find a better way to detect this
//if (string.IsNullOrEmpty(_hand) && string.IsNullOrEmpty(_source))
//{
// Logs.WriteError($"Could not find name for binding {_action.GetShortName()}.");
// FatalErrorChecker.ThrowSteamVRError();
//}
}

public VRActionInput(ISteamVR_Action_In action, bool isLongPress = false) : this(action, TextHelper.ORANGE, isLongPress) { }
Expand Down
2 changes: 1 addition & 1 deletion NomaiVR/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "NomaiVR",
"uniqueName": "Raicuparta.NomaiVR",
"description": "Enables VR mode, with full motion control support.",
"version": "0.55.0",
"version": "0.55.1",
"owmlVersion": "0.7.3",
"requireVR": true
}

0 comments on commit cf7199a

Please sign in to comment.