N64: Add logMessage() implementation
This commit is contained in:
parent
c06ddf2e57
commit
263e23bd81
2 changed files with 13 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue