Re: Re: USB Problems? Read This!

Home › Forums › Help and Support › USB Problems? Read This! › Re: Re: USB Problems? Read This!

#27812
Anonymous
Inactive

@clava wrote:

@rodries wrote:

@clava wrote:

I run a quick and dirty test (I didn’t call the IsDvdUSB() function):
– I patched usbstorage.c as suggested, replacing the one in libogc
– I patched the get_interface() function in iso9960.c , returning &__io_usbstorage;
– I patched fileop.cpp, setting: static const DISC_INTERFACE* dvd = &__io_usbstorage;
With the above modification, WiiMC shows a DataDVD icon and tries to read the disk. Unfortunately, I got an “Invalid DVD” error message and sporadic segfault… I must have missed something…

You have to patch mplayer, check libdvdread4 (maybe libdvdcss & libdvdnav) search for gekko defines

Thanks for the hints! I’ll see what I can do (or what I’m able to do…)
clava

I finally succeeded in reading the DVD structure from my external USB DVD drive 😀 !!!
I patched usbstorage.c as suggested by Rodries and I changed the get_interface() function in iso9960.c , returning &__io_usbstorage;
The only oddity is that I had to call USBStorage_Deinitialize() to read correctly the DVD actually inserted. Without calling it, readSectors() and the following ISO9660_Mount failed (even if isInserted returns true).
Attached the code I used for the test. Now I’m trying to patch wiimc and mplayer accordingly.
Any further suggestions are welcome!