aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/kyra_v1.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2011-11-18 03:47:51 +0100
committerJohannes Schickel2011-11-18 03:47:51 +0100
commitcfac223cee7cc8136fdf43dea1465a1b060a803b (patch)
tree6bf6b6800b3db6b126db256705f468cf54179941 /engines/kyra/kyra_v1.cpp
parent11a7993085d30f113fc7a8cc85c4202717be21e8 (diff)
downloadscummvm-rg350-cfac223cee7cc8136fdf43dea1465a1b060a803b.tar.gz
scummvm-rg350-cfac223cee7cc8136fdf43dea1465a1b060a803b.tar.bz2
scummvm-rg350-cfac223cee7cc8136fdf43dea1465a1b060a803b.zip
KYRA: "Fix" bug #3166235 "KYRA: Crash on startup on OS X due to invalid PAK file".
Now we can show such errors in the debugger, since we initialize and the screen resolution and the debugger before initializing the resource manager. This allows our error function to open up the debugger and show the error at least. A better feedback to the user might be desirable, but it is not really feasible with our current possibilites for error reporting.
Diffstat (limited to 'engines/kyra/kyra_v1.cpp')
-rw-r--r--engines/kyra/kyra_v1.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/kyra/kyra_v1.cpp b/engines/kyra/kyra_v1.cpp
index bf0c23bf69..dbdcda22d5 100644
--- a/engines/kyra/kyra_v1.cpp
+++ b/engines/kyra/kyra_v1.cpp
@@ -85,8 +85,9 @@ KyraEngine_v1::KyraEngine_v1(OSystem *system, const GameFlags &flags)
void KyraEngine_v1::pauseEngineIntern(bool pause) {
Engine::pauseEngineIntern(pause);
if (_sound)
- _sound->pause(pause);
- _timer->pause(pause);
+ _sound->pause(pause);
+ if (_timer)
+ _timer->pause(pause);
}
Common::Error KyraEngine_v1::init() {