diff options
Diffstat (limited to 'backends/platform')
| -rw-r--r-- | backends/platform/n64/osys_n64.h | 1 | ||||
| -rw-r--r-- | backends/platform/n64/osys_n64_base.cpp | 12 | 
2 files changed, 13 insertions, 0 deletions
| diff --git a/backends/platform/n64/osys_n64.h b/backends/platform/n64/osys_n64.h index dfa8f58cce..285e2afa55 100644 --- a/backends/platform/n64/osys_n64.h +++ b/backends/platform/n64/osys_n64.h @@ -199,6 +199,7 @@ public:  	virtual Audio::Mixer *getMixer();  	virtual void getTimeAndDate(TimeDate &t) const;  	virtual void setTimerCallback(TimerProc callback, int interval); +	virtual void logMessage(LogMessageType::Type type, const char *message);  	void rebuildOffscreenGameBuffer(void);  	void rebuildOffscreenMouseBuffer(void); diff --git a/backends/platform/n64/osys_n64_base.cpp b/backends/platform/n64/osys_n64_base.cpp index 69e8da3526..4bc3780fe2 100644 --- a/backends/platform/n64/osys_n64_base.cpp +++ b/backends/platform/n64/osys_n64_base.cpp @@ -870,6 +870,18 @@ void OSystem_N64::getTimeAndDate(TimeDate &t) const {  	return;  } +void OSystem_N64::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); +} +  void OSystem_N64::setTimerCallback(TimerProc callback, int interval) {  	assert (interval > 0); | 
