Skip to content

Fix client_config.json not used in packaged builds#140

Open
pyrogamer0209 wants to merge 1 commit into
ultraleap:mainfrom
pyrogamer0209:fix-readclientconfig
Open

Fix client_config.json not used in packaged builds#140
pyrogamer0209 wants to merge 1 commit into
ultraleap:mainfrom
pyrogamer0209:fix-readclientconfig

Conversation

@pyrogamer0209

Copy link
Copy Markdown

Normally you put the client_config.json next to the LeapC.dll and it is used automatically. This works in the Editor but not for packaged builds.

The provided solution mimics the expected behaviour. The LeapWrapper checks the expected path in the Plugin's Directory and initializes the server_namespace with the file content. If no file is given the default behaviour is used.

We tested it with:

  • Pico Neo 3 Eye Pro
  • Unreal Engine 5.2
  • Ultraleap Plugin v4.11.0
  • LeapC.dll v5.17.1

now reads the client_config file correctly in packaged games
@FriMeDev

Copy link
Copy Markdown

The important changes are in LEAP_CONNECTION* FLeapWrapper::OpenConnection(LeapWrapperCallbackInterface* InCallbackDelegate, bool UseMultiDeviceMode) starting from line 99. The other changes are auto formatting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants