diff options
| author | Max Horn | 2011-06-06 10:55:28 +0200 | 
|---|---|---|
| committer | Max Horn | 2011-06-06 15:36:28 +0200 | 
| commit | b0b5a1d80298452b5eb431e3481850e850f79f52 (patch) | |
| tree | 968d3375905f0f63076c2345afff370b00a0293d | |
| parent | 4878b2b27b8d56a660d9ec29c1557c8a0375c9f6 (diff) | |
| download | scummvm-rg350-b0b5a1d80298452b5eb431e3481850e850f79f52.tar.gz scummvm-rg350-b0b5a1d80298452b5eb431e3481850e850f79f52.tar.bz2 scummvm-rg350-b0b5a1d80298452b5eb431e3481850e850f79f52.zip  | |
DS: Add custom logMessage() implementation
| -rw-r--r-- | backends/fs/ds/ds-fs.cpp | 4 | ||||
| -rw-r--r-- | backends/platform/ds/arm9/source/osystem_ds.cpp | 7 | ||||
| -rw-r--r-- | backends/platform/ds/arm9/source/osystem_ds.h | 4 | 
3 files changed, 12 insertions, 3 deletions
diff --git a/backends/fs/ds/ds-fs.cpp b/backends/fs/ds/ds-fs.cpp index 6c11ddc605..a038889677 100644 --- a/backends/fs/ds/ds-fs.cpp +++ b/backends/fs/ds/ds-fs.cpp @@ -607,8 +607,8 @@ size_t std_fwrite(const void *ptr, size_t size, size_t numItems, FILE *handle) {  	if ((handle == stderr) || (handle == stdout)) {  #ifndef DISABLE_TEXT_CONSOLE -		nocashMessage((char *) ptr); -//		consolePrintf((char *) ptr); +		nocashMessage((char *)ptr); +//		consolePrintf((char *)ptr);  #endif  		return size;  	} diff --git a/backends/platform/ds/arm9/source/osystem_ds.cpp b/backends/platform/ds/arm9/source/osystem_ds.cpp index 90af02f43b..eab9fd6a33 100644 --- a/backends/platform/ds/arm9/source/osystem_ds.cpp +++ b/backends/platform/ds/arm9/source/osystem_ds.cpp @@ -857,6 +857,13 @@ Common::String OSystem_DS::getDefaultConfigFileName() {  	return DEFAULT_CONFIG_FILE;  } +void OSystem_DS::logMessage(LogMessageType::Type type, const char *message) { +#ifndef DISABLE_TEXT_CONSOLE +	nocashMessage((char *)message); +//	consolePrintf((char *)message); +#endif +} +  u16 OSystem_DS::applyGamma(u16 color) {  	// Attempt to do gamma correction (or something like it) to palette entries  	// to improve the contrast of the image on the original DS screen. diff --git a/backends/platform/ds/arm9/source/osystem_ds.h b/backends/platform/ds/arm9/source/osystem_ds.h index d3e7fce1a1..1e032ba2cf 100644 --- a/backends/platform/ds/arm9/source/osystem_ds.h +++ b/backends/platform/ds/arm9/source/osystem_ds.h @@ -172,12 +172,14 @@ public:  	virtual void setCursorPalette(const byte *colors, uint start, uint num); -	FilesystemFactory *getFilesystemFactory(); +	virtual FilesystemFactory *getFilesystemFactory();  	void refreshCursor();  	virtual Common::String getDefaultConfigFileName(); +	virtual void logMessage(LogMessageType::Type type, const char *message); +  	u16 applyGamma(u16 color);  	void setGammaValue(int gamma) { _gammaValue = gamma; }  | 
