aboutsummaryrefslogtreecommitdiff
path: root/engines/simon/simon.cpp
diff options
context:
space:
mode:
authorMax Horn2006-09-16 19:31:23 +0000
committerMax Horn2006-09-16 19:31:23 +0000
commit651d22b873754cf4907a67f0f3c7e18eafdd7636 (patch)
tree372b7bc3c8c3f86437467ea95a197799291e1950 /engines/simon/simon.cpp
parentfd12695e59832265cae1ba62f8092fe182f2d7a2 (diff)
downloadscummvm-rg350-651d22b873754cf4907a67f0f3c7e18eafdd7636.tar.gz
scummvm-rg350-651d22b873754cf4907a67f0f3c7e18eafdd7636.tar.bz2
scummvm-rg350-651d22b873754cf4907a67f0f3c7e18eafdd7636.zip
* Added virtual Engine::getDebugger() method
* Removed code from errorString() methods that hooked the debugger(s) into error(), in favor of using getDebugger() from within error() * As a consequence, removed most custom errorString() methods svn-id: r23894
Diffstat (limited to 'engines/simon/simon.cpp')
-rw-r--r--engines/simon/simon.cpp21
1 files changed, 2 insertions, 19 deletions
diff --git a/engines/simon/simon.cpp b/engines/simon/simon.cpp
index 2e0c2712f3..74ed56eb03 100644
--- a/engines/simon/simon.cpp
+++ b/engines/simon/simon.cpp
@@ -36,9 +36,6 @@
#include "simon/vga.h"
#include "sound/mididrv.h"
-#ifdef _WIN32_WCE
-extern bool isSmartphone(void);
-#endif
#ifdef PALMOS_68K
#include "globals.h"
@@ -611,22 +608,8 @@ SimonEngine::~SimonEngine() {
delete _sound;
}
-void SimonEngine::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();
- }
+GUI::Debugger *SimonEngine::getDebugger() {
+ return _debugger;
}
void SimonEngine::paletteFadeOut(byte *palPtr, uint num, uint size) {