Re: Re: USB DVD Device Support

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

#28335
Anonymous
Inactive

@rodries wrote:

uhmm, I think we can add another condition to check only if the usb device is a dvd, only for security


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

Ok, it is safer, calls ReadCapacity() only if necessary, and works (tested!).

@rodries wrote:

Can you test it using a ios different from ios58?
I want to be sure that works with usb1 and not only with usb2
__mounted is handled in a different way in usb1

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.