From 64cf0b5dadde96a01eb7018ed2e31995ff378f7d Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Sun, 26 Aug 2012 11:00:54 +0200 Subject: [PATCH] remove DEVICE_DVD from fileop (not used) --- main/source/Tools/fileop.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/main/source/Tools/fileop.cpp b/main/source/Tools/fileop.cpp index 00e436d..d241f5d 100644 --- a/main/source/Tools/fileop.cpp +++ b/main/source/Tools/fileop.cpp @@ -35,8 +35,8 @@ static const DISC_INTERFACE* dvd = &__io_wiidvd; enum { DEVICE_SD, - DEVICE_USB, - DEVICE_DVD + DEVICE_USB + }; static char prefix[2][4] = { "sd", "usb" }; @@ -174,10 +174,6 @@ static void AddPartition(sec_t sector, int device, int type, int *devnum) { disc = (DISC_INTERFACE *)usb; } - else if (device == DEVICE_DVD) - { - disc = (DISC_INTERFACE *)dvd; - } char mount[10]; sprintf(mount, "%s%i", prefix[device], *devnum+1); @@ -537,8 +533,6 @@ static bool MountPartitions(int device) case DEVICE_USB: disc = usb; break; - case DEVICE_DVD: - disc = dvd; break; default: return false; // unknown device @@ -569,7 +563,7 @@ void MountAllDevices() if(__io_gcsda.startup() && __io_gcsda.isInserted()) fatMountSimple("gca", &__io_gcsda); - + usleep(250000); if(__io_gcsdb.startup() && __io_gcsdb.isInserted())