aboutsummaryrefslogtreecommitdiff
path: root/simon/simon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'simon/simon.cpp')
-rw-r--r--simon/simon.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp
index 7d720566e2..1621cd1253 100644
--- a/simon/simon.cpp
+++ b/simon/simon.cpp
@@ -756,10 +756,16 @@ SimonEngine::~SimonEngine() {
void SimonEngine::errorString(const char *buf1, char *buf2) {
strcpy(buf2, buf1);
- // Unless an error -originated- within the debugger, spawn the debugger. Otherwise
- // exit out normally.
+#ifdef _WIN32_WCE
+ if (isSmartphone())
+ return;
+#endif
+
+ // Unless an error -originated- within the debugger, spawn the
+ // debugger. Otherwise exit out normally.
if (_debugger && !_debugger->isAttached()) {
- printf("%s\n", buf2); // (Print it again in case debugger segfaults)
+ // (Print it again in case debugger segfaults)
+ printf("%s\n", buf2);
_debugger->attach(buf2);
_debugger->onFrame();
}