Re: Re: USB DVD Device Support

Home › Forums › Development › USB DVD Device Support › Re: Re: USB DVD Device Support

#28337
aka107
Member

@clava wrote:

… it works but I fear we changed the right execution flow!

The right code should be:


if(__mounted) {
if (__usbfd.sector_size[__lun]==2048) {
// dvd requires further checks
u32 sectorsize, numSectors;
if (USBStorage_ReadCapacity(&__usbfd, __lun, &sectorsize, &numSectors) < 0)
return false;
else
return true;
} else
return true;
}

Rigth
@clava wrote:

I tested IOS61 calling IOS_ReloadIOS(61) at the beginnig of the wiimc’s main (is it right?). Unfortunately I got an exception when I connected the usb dvd device. Next days I’ll try to catch the stack dump.

It’s rigth, the problem is that ios61 is using usb1 so it’s handled in a different way.
Maybe you can create a simple test program to debug it.
Also you have to use the very last usbstorage.c from libogc becuase there were 2 bugs