Re: Re: USB DVD Device Support

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

#28314
Anonymous
Inactive

Hi devs!

Attached a zip with a new version of the iso9660 code. Now the module supports multiple mounts, so wiimc should be able to handle both internal and external dvds. The zip also include a small test application.

I tested the code using the attached test app and using a custom version of wiimc. I wasn’t able to test internal and external dvds together because of the d3-2 drive of my wii. Moreoved I reverted usbstorage.c to r4533 because the latest Rodries’ modification doesn’t work with my usb dvd drive (ISI Exception occurred).

I added 3 functions to iso9660, allowing to specify the mount point (e.g. name=”usb1″) and the disc_interface:
bool ISO9660_MountEx(const char* name, const DISC_INTERFACE* disc_interface);
bool ISO9660_UnmountEx(const char* name);
u64 ISO9660_LastAccessEx(const char* name);

The old Mount, Unmount and LastAccess functions work with “dvd” as mount name and “&__io_wiidvd” (or &__io_gcdvd) as disc_interface, for backward compatibility.

I also increased the read buffer from 32k to 64k. I didn’t implemented critical regions, so concurrent accesses to a same mount are not allowed.