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

Android: Return 0 on fail on WiimoteReal IOWrite and update WiimoteNew defaults #7301

Merged
merged 1 commit into from
Aug 5, 2018

Conversation

zackhow
Copy link
Member

@zackhow zackhow commented Aug 3, 2018

Some of the write checks do an & on the result, returning 0 will allow these fails to be caught.
Updated the default WiimoteNew to set wiimotes 2-4 to be disabled on new install. No reason to have these enabled unless there is actually a 2+ players.

First change fixes a crash at emulation start where a user has two controllers set as Real Wiimotes(source=2) but they only have one Wiimote actually connected to the dolphin bar. There is still a crash if Wiimote 1 is disconnected during gameplay, but this should be less common since it would be an intentional act by the player.
Updating the defaults just cleans some annoyances, one such is being spammed with "Controllers 2-4 Connected" when playing just touch screen.

…w defaults

Some of the write checks do an & on the result, returning 0 will allow these fails to be caught.
Updated the default WiimoteNew to set wiimotes 2-4 to be disabled on new install. No reason to have these
enabled unless there is actually a 2+ players
@zackhow
Copy link
Member Author

zackhow commented Aug 3, 2018

I should mention that the crash by disconnecting mid game was already there, and is not caused by this update.

@Helios747 Helios747 merged commit 0a8e04e into dolphin-emu:master Aug 5, 2018
@zackhow zackhow deleted the wiicontroller branch August 14, 2018 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants