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

only load a profile if profileNum exists and is enabled #1167

Merged

Conversation

bsstephan
Copy link
Contributor

This handles both the gamepad profile number being a number that doesn't exist (even though that shouldn't be possible via webconfig), or if the profile is disabled (which could happen if the user picks profile N and then disables it afterwards). In both cases, this doesn't load the alts pins, so the functional pins come from profile 1.

Copy link
Contributor

@arntsonl arntsonl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep makes sense

@arntsonl arntsonl merged commit 2ec1f04 into OpenStickCommunity:main Sep 30, 2024
44 checks passed
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