aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorEugene Sandulenko2008-06-04 20:28:20 +0000
committerEugene Sandulenko2008-06-04 20:28:20 +0000
commit5e666ef774d11d030ea9957ecc64a197de2abcd8 (patch)
tree0d7e9e8c78dd31c25127f7498c2e2955641ceefa /common
parent1869141f0448621b19ab25d3ca338a134500a049 (diff)
downloadscummvm-rg350-5e666ef774d11d030ea9957ecc64a197de2abcd8.tar.gz
scummvm-rg350-5e666ef774d11d030ea9957ecc64a197de2abcd8.tar.bz2
scummvm-rg350-5e666ef774d11d030ea9957ecc64a197de2abcd8.zip
Patch #1971285: "Nintendo Wii port"
svn-id: r32547
Diffstat (limited to 'common')
-rw-r--r--common/scummsys.h8
-rw-r--r--common/system.cpp2
2 files changed, 9 insertions, 1 deletions
diff --git a/common/scummsys.h b/common/scummsys.h
index 4299de7243..939f34a5c3 100644
--- a/common/scummsys.h
+++ b/common/scummsys.h
@@ -369,6 +369,14 @@
#define STRINGBUFLEN 256
#define printf(fmt, ...) consolePrintf(fmt, ##__VA_ARGS__)
+#elif defined(__WII__)
+
+ #define scumm_stricmp strcasecmp
+ #define scumm_strnicmp strncasecmp
+
+ #define SCUMM_BIG_ENDIAN
+ #define SCUMM_NEED_ALIGNMENT
+
#else
#error No system type defined
diff --git a/common/system.cpp b/common/system.cpp
index f133f3c4e3..015f246b7a 100644
--- a/common/system.cpp
+++ b/common/system.cpp
@@ -137,7 +137,7 @@ void OSystem::clearScreen() {
#endif
FilesystemFactory *OSystem::getFilesystemFactory() {
- #if defined(__amigaos4__) || defined(__DC__) || defined(__SYMBIAN32__) || defined(UNIX) || defined(WIN32) || defined(__PSP__) || defined(__DS__)
+ #if defined(__amigaos4__) || defined(__DC__) || defined(__SYMBIAN32__) || defined(UNIX) || defined(WIN32) || defined(__WII__) || defined(__PSP__) || defined(__DS__)
// These ports already implement this function, so it should never be called.
return 0;
#elif defined(PALMOS_MODE)