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

InputCommon/GCAdapter: Fix offbrand "GCAdapters". #8933

Merged
merged 1 commit into from Jul 8, 2020

Conversation

jordan-woyak
Copy link
Member

@jordan-woyak jordan-woyak commented Jul 5, 2020

This makes my Nyko-branded GCAdapter work and probably others. Please test.

Note that libusb_control_transfer calls give a LIBUSB_ERROR_BUSY error within a hotplug callback so I've introduced an Event to initialize adapters in the "scanning" thread.

I'm not entirely happy with this fix but GCAdapter needs a complete rewrite. The error handling is bad. The inter-thread communication is bad. And 90% of the logic is copy-pasted to GCAdapter_Android.cpp.

This PR does not attempt to fix the Android-side of things. I can't test there.

@JMC47
Copy link
Contributor

JMC47 commented Jul 6, 2020

I can test GC adapter code on Android, but I don't have Nyko.

@JMC47
Copy link
Contributor

JMC47 commented Jul 6, 2020

This adapter here still doesn't work.

https://cdn.discordapp.com/attachments/521710974827495435/729598461900488754/unknown.png

It spams the logs with this:

17:55:603 InputCommon\GCAdapter.cpp:91 E[SI]: adapter libusb read failed: err=LIBUSB_ERROR_IO

@NikhilNarayana
Copy link

NikhilNarayana commented Jul 7, 2020

I have had two people test master and this PR with a pdobq adapter and this fix has worked for them.

Image of the adapter for reference: https://cdn.discordapp.com/attachments/363806218181017601/729876869658181702/image0.jpg

EDIT: Just had someone test with different adapter brand and it worked
https://www.amazon.com/dp/B07Q459FBQ/ref=cm_sw_r_cp_api_i_DA-aFbY54SRKB

@lioncash
Copy link
Member

lioncash commented Jul 8, 2020

@NikhilNarayana Thanks for having some testing done, even though you didn't have to!

@lioncash lioncash merged commit a1195fb into dolphin-emu:master Jul 8, 2020
@jordan-woyak jordan-woyak deleted the gcadapter-nyko branch July 8, 2020 18:09
@Skycl0ps
Copy link

Skycl0ps commented Jul 8, 2020

This is the root for my adapter not working I believe. Idk what went down but my adapter was working fine last night and after updating today it no longer works.

@JMC47
Copy link
Contributor

JMC47 commented Jul 9, 2020

Could you list what adapter you are using?

@Zerogamer001
Copy link

Zerogamer001 commented Jul 9, 2020

This version of dolphin made my Mayflash Gamecube adapter stop working it keeps giving me the error "Error Opening Adapter: Pipe error" when you check "GameCube Adapter for Wii U"'s configure option. I tried the previous developmental build (version 5.0-12261) and it was working fine again, please fix this problem.

@jordan-woyak
Copy link
Member Author

Issue reports can be filed here: https://bugs.dolphin-emu.org/projects/emulator/issues

@Zerogamer001
Copy link

Zerogamer001 commented Jul 9, 2020

thank you, it looks like someone already made a post about some adapters not working because of this build.
https://bugs.dolphin-emu.org/issues/12182
hopefully it gets fixed soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants