Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update WhisperFactory.cs #41

Merged
merged 1 commit into from
May 16, 2023
Merged

Update WhisperFactory.cs #41

merged 1 commit into from
May 16, 2023

Conversation

GFNiko
Copy link
Contributor

@GFNiko GFNiko commented May 16, 2023

Since I needed a custom dll path, I noticed this isn't passed so far and the default path was always used. Positioning the if query after the variable declarations solved the problem for me. I think the if (!libraryLoaded.value.isSuccess) query before WhisperFactory.librayPath = libraryPath; was a bug.

Since I needed a custom dll path, I noticed this isn't passed so far and the default path was always used. Positioning the if query after the variable declarations solved the problem for me. I think the if (!libraryLoaded.value.isSuccess) query before WhisperFactory.librayPath = libraryPath; was a bug.
@sandrohanea
Copy link
Owner

Indeed, it was a bug at that dynamic loading. Thanks for fixing it!

@sandrohanea sandrohanea merged commit d31d84b into sandrohanea:main May 16, 2023
@drasticactions
Copy link
Contributor

Ouch, sorry about that! I generally test on Mac so I always link the libraries instead of dynamically loading them, so I missed that case. Should have checked for that.

@GFNiko GFNiko deleted the patch-1 branch May 25, 2023 06:35
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.

3 participants