diff options
author | Johannes Schickel | 2011-11-18 03:47:51 +0100 |
---|---|---|
committer | Johannes Schickel | 2011-11-18 03:47:51 +0100 |
commit | cfac223cee7cc8136fdf43dea1465a1b060a803b (patch) | |
tree | 6bf6b6800b3db6b126db256705f468cf54179941 /engines/kyra/kyra_v1.cpp | |
parent | 11a7993085d30f113fc7a8cc85c4202717be21e8 (diff) | |
download | scummvm-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.cpp | 5 |
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() { |