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

Allow loading mappings from local file path #24

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

breiler
Copy link

@breiler breiler commented Oct 29, 2023

The mapping file currently needs to be located on the classpath for Jamepad to be able to read it. We have a case where users want to add their own custom controllers and want to extend the database with additional entries in runtime.

This small change will allow reading from local files on the system. Also makes sure to close the file stream when it is completed reading.

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