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

Fix several bugs with undocumented feature of Bass.PluginLoad() #87

Merged
merged 2 commits into from
Feb 25, 2021

Conversation

mdsitton
Copy link
Contributor

@mdsitton mdsitton commented Feb 24, 2021

So Bass.PluginLoad has an undocumented feature here where if you pass in the folder path + base name of the plugin it will add the file extension and prefixes for each platform and try each to see if any will load a valid plugin but i have found several issues with this:

The first bug here is with path handling. The code splits the directory name from the file name then merges them together but does not put a file separator between the two.

The second bug is with the state that it leaves Bass.LastError in after trying to load the plugin. If the plugin fails for any reason such as Errors.FileFormat, or Errors.Already that will get overwritten by later calls for the different platforms and the user will be unable to see why the plugin actually failed to load.

The first bug here is with path handling. The code splits the directory name from the file name then merges them together but does not put a file seperator between the two.

The second bug is with the state that it leaves Bass.LastError in after trying to load the plugin. If the plugin fails for any reason such as Errors.FileFormat, or Errors.Already that will get overwritten by later calls for the different platforms.
@mdsitton
Copy link
Contributor Author

@MathewSachin Should be ready to review again when you have the chance

@MathewSachin MathewSachin merged commit 43f9d4b into ManagedBass:master Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants