IPHONE: Add logMessage() implementation
This commit is contained in:
parent
50896e6029
commit
c06ddf2e57
2 changed files with 14 additions and 0 deletions
|
@ -242,6 +242,18 @@ void OSystem_IPHONE::addSysArchivesToSearchSet(Common::SearchSet &s, int priorit
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void OSystem_IPHONE::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 iphone_main(int argc, char *argv[]) {
|
void iphone_main(int argc, char *argv[]) {
|
||||||
|
|
||||||
//OSystem_IPHONE::migrateApp();
|
//OSystem_IPHONE::migrateApp();
|
||||||
|
|
|
@ -180,6 +180,8 @@ public:
|
||||||
|
|
||||||
virtual Common::String getDefaultConfigFileName();
|
virtual Common::String getDefaultConfigFileName();
|
||||||
|
|
||||||
|
virtual void logMessage(LogMessageType::Type type, const char *message);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void internUpdateScreen();
|
void internUpdateScreen();
|
||||||
void dirtyFullScreen();
|
void dirtyFullScreen();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue