disable sdgecko on Wii

This commit is contained in:
Dave Murphy 2008-05-25 14:52:04 +00:00
parent 486efc2bc9
commit e6b8be341d

View File

@ -79,8 +79,10 @@
const IO_INTERFACE* ioInterfaces[] = { const IO_INTERFACE* ioInterfaces[] = {
#ifdef __gamecube__
&__io_gcsda, &__io_gcsda,
&__io_gcsdb, &__io_gcsdb,
#endif
#ifdef __wii__ #ifdef __wii__
&__io_wiisd &__io_wiisd
#endif #endif
@ -137,12 +139,7 @@ const IO_INTERFACE* _FAT_disc_gcFindInterfaceSlot(int slot)
const IO_INTERFACE* _FAT_disc_findInterface(void) const IO_INTERFACE* _FAT_disc_findInterface(void)
{ {
#ifdef __wii__ #ifdef __wii__
const IO_INTERFACE *disc; return _FAT_disc_wiiFindInterface();
disc = _FAT_disc_wiiFindInterface();
if(disc == NULL)
disc = _FAT_disc_gcFindInterface();
return disc;
#else #else
return _FAT_disc_gcFindInterface(); return _FAT_disc_gcFindInterface();
#endif #endif
@ -152,12 +149,14 @@ const IO_INTERFACE* _FAT_disc_findInterfaceSlot (PARTITION_INTERFACE partitionNu
{ {
switch(partitionNumber) switch(partitionNumber)
{ {
#ifdef __gamecube__
case PI_SDGECKO_A: case PI_SDGECKO_A:
return _FAT_disc_gcFindInterfaceSlot(0); return _FAT_disc_gcFindInterfaceSlot(0);
break; break;
case PI_SDGECKO_B: case PI_SDGECKO_B:
return _FAT_disc_gcFindInterfaceSlot(1); return _FAT_disc_gcFindInterfaceSlot(1);
break; break;
#endif
#ifdef __wii__ #ifdef __wii__
case PI_INTERNAL_SD: case PI_INTERNAL_SD:
return _FAT_disc_wiiFindInterface(); return _FAT_disc_wiiFindInterface();