aboutsummaryrefslogtreecommitdiff
path: root/backends/fs
diff options
context:
space:
mode:
authorAndre Heider2010-08-14 00:56:12 +0000
committerAndre Heider2010-08-14 00:56:12 +0000
commitc58e2707ffa147f099e3eaf32c941da9cdc47dda (patch)
tree1970bd7073097d092cb9841f729c2c1c34e2a478 /backends/fs
parent185da189265a7388792fdc042214b6be93a083f9 (diff)
downloadscummvm-rg350-c58e2707ffa147f099e3eaf32c941da9cdc47dda.tar.gz
scummvm-rg350-c58e2707ffa147f099e3eaf32c941da9cdc47dda.tar.bz2
scummvm-rg350-c58e2707ffa147f099e3eaf32c941da9cdc47dda.zip
WII: Update port for the current versions of the base libraries. Enable DVD access for the GameCube port.
svn-id: r52074
Diffstat (limited to 'backends/fs')
-rw-r--r--backends/fs/wii/wii-fs-factory.cpp20
1 files changed, 2 insertions, 18 deletions
diff --git a/backends/fs/wii/wii-fs-factory.cpp b/backends/fs/wii/wii-fs-factory.cpp
index 5bc8ba56f5..cf71a11067 100644
--- a/backends/fs/wii/wii-fs-factory.cpp
+++ b/backends/fs/wii/wii-fs-factory.cpp
@@ -29,6 +29,7 @@
#ifdef USE_WII_DI
#include <di/di.h>
+#include <iso9660.h>
#endif
#ifdef USE_WII_SMB
@@ -125,24 +126,11 @@ void WiiFilesystemFactory::mount(FileSystemType type) {
break;
printf("mount dvd\n");
- DI_Mount();
-
- while (DI_GetStatus() & DVD_INIT)
- usleep(20 * 1000);
-
- if (!(DI_GetStatus() & DVD_READY)) {
- DI_StopMotor();
- printf("error mounting dvd\n");
- break;
- }
-
- printf("mount ISO9660\n");
if (ISO9660_Mount()) {
_dvdMounted = true;
_dvdError = false;
printf("ISO9660 mounted\n");
} else {
- DI_StopMotor();
_dvdError = true;
printf("ISO9660 mount failed\n");
}
@@ -185,7 +173,6 @@ void WiiFilesystemFactory::umount(FileSystemType type) {
printf("umount dvd\n");
ISO9660_Unmount();
- DI_StopMotor();
_dvdMounted = false;
_dvdError = false;
@@ -199,10 +186,7 @@ void WiiFilesystemFactory::umount(FileSystemType type) {
printf("umount smb\n");
- if (smbClose("smb:"))
- printf("smb umounted\n");
- else
- printf("error umounting smb\n");
+ smbClose("smb:");
_smbMounted = false;
_smbError = false;