Fix Issue with Bhaptics API and Steam Version of Bhaptics Player
HerpDerpinstine opened this issue ยท 0 comments
The Bhaptics API implementation in MelonLoader uses the TryGetExePath export to check if the Bhaptics Player is installed.
This causes a problem as TryGetExePath only checks and returns a registry value.
A registry value that only gets set by the installer for the Bhaptics Player when downloaded from their website and not from Steam.
If someone tries to use just the Steam version of the Bhaptics Player without the one from their website it will act as if the user doesn't have the Player installed.
Resulting in the API never initializing and anything using it to fail.
The fix would be to parse Steam Library files and check if the Bhaptics Player is installed from Steam as a fallback.