aboutsummaryrefslogtreecommitdiff
path: root/common/textconsole.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/textconsole.cpp')
-rw-r--r--common/textconsole.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/common/textconsole.cpp b/common/textconsole.cpp
index 87ba55ebf1..0d0b0aead9 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;
@@ -151,14 +155,14 @@ 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
+
+#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();