From b5a25a6e1988c11929fe68cc9e5786bf738b21ce Mon Sep 17 00:00:00 2001 From: Yotam Barnoy Date: Mon, 21 Jun 2010 13:58:51 +0000 Subject: 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 --- common/textconsole.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'common/textconsole.cpp') 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 #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(); -- cgit v1.2.3 From 0b48a71c9955b39117e2eb35b3e398f5c95c008a Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 17 Jul 2010 18:41:38 +0000 Subject: Remove PalmOS port svn-id: r50964 --- common/textconsole.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'common/textconsole.cpp') diff --git a/common/textconsole.cpp b/common/textconsole.cpp index 2e5a347489..b959b8ec23 100644 --- a/common/textconsole.cpp +++ b/common/textconsole.cpp @@ -155,11 +155,6 @@ void NORETURN_PRE error(const char *s, ...) { __android_log_assert("Fatal error", "ScummVM", "%s", buf_output); #endif -#ifdef PALMOS_MODE - extern void PalmFatalError(const char *err); - PalmFatalError(buf_output); -#endif - #ifdef __SYMBIAN32__ Symbian::FatalError(buf_output); #endif -- cgit v1.2.3 From e5e94d45118781902465024fc9a85c7aa0bfd3ce Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Wed, 21 Jul 2010 18:17:51 +0000 Subject: Strip trailing whitespaces in our common code base. svn-id: r51094 --- common/textconsole.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/textconsole.cpp') diff --git a/common/textconsole.cpp b/common/textconsole.cpp index b959b8ec23..0d0b0aead9 100644 --- a/common/textconsole.cpp +++ b/common/textconsole.cpp @@ -162,7 +162,7 @@ void NORETURN_PRE error(const char *s, ...) { #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(); -- cgit v1.2.3