diff options
author | Yotam Barnoy | 2010-06-21 13:58:51 +0000 |
---|---|---|
committer | Yotam Barnoy | 2010-06-21 13:58:51 +0000 |
commit | b5a25a6e1988c11929fe68cc9e5786bf738b21ce (patch) | |
tree | a9d83d6d3dc5f44c3257d6f25fdcdf45052fda40 /common | |
parent | 57b8e2caaabebde88eb46d0d85d3c09414cdc778 (diff) | |
download | scummvm-rg350-b5a25a6e1988c11929fe68cc9e5786bf738b21ce.tar.gz scummvm-rg350-b5a25a6e1988c11929fe68cc9e5786bf738b21ce.tar.bz2 scummvm-rg350-b5a25a6e1988c11929fe68cc9e5786bf738b21ce.zip |
PSP: errors from both ScummVM and the PSP port now print to file by default. This should make debugging easier, especially for users.
svn-id: r50113
Diffstat (limited to 'common')
-rw-r--r-- | common/textconsole.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/common/textconsole.cpp b/common/textconsole.cpp index 87ba55ebf1..2e5a347489 100644 --- a/common/textconsole.cpp +++ b/common/textconsole.cpp @@ -47,6 +47,10 @@ extern bool isSmartphone(); #include <android/log.h> #endif +#ifdef __PSP__ + #include "backends/platform/psp/trace.h" +#endif + namespace Common { static OutputFormatter s_errorOutputFormatter = 0; @@ -159,6 +163,11 @@ void NORETURN_PRE error(const char *s, ...) { #ifdef __SYMBIAN32__ Symbian::FatalError(buf_output); #endif + +#ifdef __PSP__ + PspDebugTrace(false, "%s", buf_output); // write to file +#endif + // Finally exit. quit() will terminate the program if g_system is present if (g_system) g_system->quit(); |