Re: Re: USB DVD Device Support

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

#28331
Anonymous
Inactive

@Rodries
@rodries wrote:

Seems that the only way to detect if the dvd is inserted is calling to USBStorage_ReadCapacity
So if you use my old USBStorage_IsDVD then it will return 0 if dvd is not inserted

What about adding something like this:


if(__mounted) {
u32 sectorsize, numSectors;
if (USBStorage_ReadCapacity(&__usbfd, __lun, &sectorsize, &numSectors) < 0)
return false;
else
return true;
}

at the beginning of __usbstorage_IsInserted()? It works in wiimc 😀


@mugre1975

the latest svn revision supports external usb dvd readers. There are still some open issues (e.g. disc change detection or wrong advancement bar when setting “Skip to Main Title”) but it works… at least with my HP usb dvd reader.
If you’re interested, you can download wiimc and libogc source code, and build the latest svn revision. Alternatively, you can send me a p.m. with your email address so I can send you the custom build of the latest wiimc revision.