aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorAndre Heider2009-01-21 19:29:02 +0000
committerAndre Heider2009-01-21 19:29:02 +0000
commite94378511e1bf3cc56318341d24776db817bf3e5 (patch)
treea1dd67095f1f4b69cb30f4c7a41999146293cd23 /backends/platform
parentc65e670295caa7fed756ed12fe2dbc02a14d191a (diff)
downloadscummvm-rg350-e94378511e1bf3cc56318341d24776db817bf3e5.tar.gz
scummvm-rg350-e94378511e1bf3cc56318341d24776db817bf3e5.tar.bz2
scummvm-rg350-e94378511e1bf3cc56318341d24776db817bf3e5.zip
made ISO9660 support optional via USE_WII_DI
svn-id: r35985
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/wii/Makefile12
-rw-r--r--backends/platform/wii/main.cpp8
2 files changed, 16 insertions, 4 deletions
diff --git a/backends/platform/wii/Makefile b/backends/platform/wii/Makefile
index 66f16317ae..6b539a616e 100644
--- a/backends/platform/wii/Makefile
+++ b/backends/platform/wii/Makefile
@@ -14,6 +14,14 @@ DEBUG_WII_GDB = 0
# Builds a Gamecube version. Cleanup object files before flipping this!
GAMECUBE = 0
+# Enable DVD ISO9660/Joliet support using libdi (included in libogc)
+# This requires a working DVDX install to function, not available on Gamecube
+ifeq ($(GAMECUBE),1)
+USE_WII_DI = 0
+else
+USE_WII_DI = 1
+endif
+
# List of game engines to compile in. Comment a to disable the engine.
ENABLE_SCUMM = STATIC_PLUGIN
ENABLE_SCUMM_7_8 = STATIC_PLUGIN
@@ -130,6 +138,10 @@ CXXFLAGS += -DDEBUG_WII_GDB
LIBS += -ldb
endif
+ifeq ($(USE_WII_DI),1)
+CXXFLAGS += -DUSE_WII_DI
+endif
+
ifeq ($(USE_ZLIB),1)
CXXFLAGS += -DUSE_ZLIB
LIBS += -lz
diff --git a/backends/platform/wii/main.cpp b/backends/platform/wii/main.cpp
index 3c53039ea2..1182ddd31b 100644
--- a/backends/platform/wii/main.cpp
+++ b/backends/platform/wii/main.cpp
@@ -27,7 +27,7 @@
#include <ogc/machine/processor.h>
#include <fat.h>
-#ifndef GAMECUBE
+#ifdef USE_WII_DI
#include <di/di.h>
#endif
@@ -83,7 +83,7 @@ void wii_memstats(void) {
int main(int argc, char *argv[]) {
s32 res;
-#ifndef GAMECUBE
+#ifdef USE_WII_DI
DI_Init();
#endif
@@ -110,7 +110,7 @@ int main(int argc, char *argv[]) {
SYS_SetPowerCallback(power_cb);
#endif
-#ifndef GAMECUBE
+#ifdef USE_WII_DI
// initial async mount for the browser, see wii-fs.cpp
DI_Mount();
#endif
@@ -149,7 +149,7 @@ int main(int argc, char *argv[]) {
fatUnmountDefault();
#endif
-#ifndef GAMECUBE
+#ifdef USE_WII_DI
DI_Close();
#endif