BACKENDS: Implement logging API proposed by Max on -devel.
This commits a slightly modified patch from my patch tracker item #3104630 "OSYSTEM: Add logging API as proposed by Max on -devel". I was not able to test compilation on Android and SamsungTV, since there is no toolchain for those on buildbot (or I was too blind to find them). svn-id: r54339
This commit is contained in:
parent
411866ee18
commit
e1030e53a5
11 changed files with 143 additions and 107 deletions
|
@ -408,6 +408,13 @@ void OSystem_PSP::quit() {
|
|||
sceKernelExitGame();
|
||||
}
|
||||
|
||||
void OSystem_PSP::logMessage(LogMessageType::Type type, const char *message) {
|
||||
BaseBackend::logMessage(type, message);
|
||||
|
||||
if (type == LogMessageType::kError)
|
||||
PspDebugTrace(false, "%s", message); // write to file
|
||||
}
|
||||
|
||||
void OSystem_PSP::getTimeAndDate(TimeDate &td) const {
|
||||
time_t curTime = time(0);
|
||||
struct tm t = *localtime(&curTime);
|
||||
|
|
|
@ -153,6 +153,8 @@ public:
|
|||
|
||||
void quit();
|
||||
|
||||
void logMessage(LogMessageType::Type type, const char *message);
|
||||
|
||||
Common::SeekableReadStream *createConfigReadStream();
|
||||
Common::WriteStream *createConfigWriteStream();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue