[Scummvm-cvs-logs] CVS: scummvm/sky sky.cpp,1.175,1.176
kirben
kirben at users.sourceforge.net
Mon May 9 05:15:02 CEST 2005
Update of /cvsroot/scummvm/scummvm/sky
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21117/sky
Modified Files:
sky.cpp
Log Message:
Use debugger for errors, where possible.
Index: sky.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sky/sky.cpp,v
retrieving revision 1.175
retrieving revision 1.176
diff -u -d -r1.175 -r1.176
--- sky.cpp 1 Apr 2005 07:33:39 -0000 1.175
+++ sky.cpp 9 May 2005 12:08:25 -0000 1.176
@@ -132,6 +132,20 @@
void SkyEngine::errorString(const char *buf1, char *buf2) {
strcpy(buf2, buf1);
+
+#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()) {
+ // (Print it again in case debugger segfaults)
+ printf("%s\n", buf2);
+ _debugger->attach(buf2);
+ _debugger->onFrame();
+ }
}
void SkyEngine::initVirgin() {
More information about the Scummvm-git-logs
mailing list