[Scummvm-cvs-logs] CVS: scummvm/simon simon.cpp,1.501,1.502
kirben
kirben at users.sourceforge.net
Mon May 9 05:15:03 CEST 2005
Update of /cvsroot/scummvm/scummvm/simon
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21117/simon
Modified Files:
simon.cpp
Log Message:
Use debugger for errors, where possible.
Index: simon.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/simon.cpp,v
retrieving revision 1.501
retrieving revision 1.502
diff -u -d -r1.501 -r1.502
--- simon.cpp 9 May 2005 11:39:31 -0000 1.501
+++ simon.cpp 9 May 2005 12:08:24 -0000 1.502
@@ -756,10 +756,16 @@
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();
}
More information about the Scummvm-git-logs
mailing list