diff options
author | Max Horn | 2011-06-17 12:16:18 -0700 |
---|---|---|
committer | Max Horn | 2011-06-17 12:16:18 -0700 |
commit | 158c2252ab4fea7fd9ecea62a2439d82b388df1c (patch) | |
tree | be7e972a8118b92d6cbdc16ce36129a4de3c094f /backends/platform/wii | |
parent | 825c889e33d2c68dec65e6496c69d5d4a89cba51 (diff) | |
parent | f7c1e7d002c21eeaf0b5c06d3527ede532f5cd51 (diff) | |
download | scummvm-rg350-158c2252ab4fea7fd9ecea62a2439d82b388df1c.tar.gz scummvm-rg350-158c2252ab4fea7fd9ecea62a2439d82b388df1c.tar.bz2 scummvm-rg350-158c2252ab4fea7fd9ecea62a2439d82b388df1c.zip |
Merge pull request #42 from fingolfin/no-osystem-defaults
Remove default implementation of OSystem::logMessage
Diffstat (limited to 'backends/platform/wii')
-rw-r--r-- | backends/platform/wii/osystem.cpp | 18 | ||||
-rw-r--r-- | backends/platform/wii/osystem.h | 2 |
2 files changed, 15 insertions, 5 deletions
diff --git a/backends/platform/wii/osystem.cpp b/backends/platform/wii/osystem.cpp index c6b23783b8..258a782cc4 100644 --- a/backends/platform/wii/osystem.cpp +++ b/backends/platform/wii/osystem.cpp @@ -19,11 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -// Allow use of stuff in <time.h> -#define FORBIDDEN_SYMBOL_EXCEPTION_time_h - -#define FORBIDDEN_SYMBOL_EXCEPTION_printf -#define FORBIDDEN_SYMBOL_EXCEPTION_getcwd +#define FORBIDDEN_SYMBOL_ALLOW_ALL #include <unistd.h> @@ -291,6 +287,18 @@ void OSystem_Wii::showOptionsDialog() { _padAcceleration = 9 - ConfMan.getInt("wii_pad_acceleration"); } +void OSystem_Wii::logMessage(LogMessageType::Type type, const char *message) { + FILE *output = 0; + + if (type == LogMessageType::kInfo || type == LogMessageType::kDebug) + output = stdout; + else + output = stderr; + + fputs(message, output); + fflush(output); +} + #ifndef GAMECUBE Common::String OSystem_Wii::getSystemLanguage() const { const char *wiiCountries[] = { diff --git a/backends/platform/wii/osystem.h b/backends/platform/wii/osystem.h index 6863a6840e..64197f913a 100644 --- a/backends/platform/wii/osystem.h +++ b/backends/platform/wii/osystem.h @@ -211,6 +211,8 @@ public: virtual FilesystemFactory *getFilesystemFactory(); virtual void getTimeAndDate(TimeDate &t) const; + virtual void logMessage(LogMessageType::Type type, const char *message); + #ifndef GAMECUBE virtual Common::String getSystemLanguage() const; #endif // GAMECUBE |