diff options
author | Thomas Fach-Pedersen | 2014-05-30 10:24:24 -0700 |
---|---|---|
committer | Eugene Sandulenko | 2016-09-29 22:33:35 +0200 |
commit | 5a12394a763b569977c697dca0ec8e1e428b6db4 (patch) | |
tree | cfd59b77736b8adc1ba040fca6b8352e69d1c96a /engines/bladerunner | |
parent | 8cbfd9ab50064456e1aac1e08c2c98661e756ebc (diff) | |
download | scummvm-rg350-5a12394a763b569977c697dca0ec8e1e428b6db4.tar.gz scummvm-rg350-5a12394a763b569977c697dca0ec8e1e428b6db4.tar.bz2 scummvm-rg350-5a12394a763b569977c697dca0ec8e1e428b6db4.zip |
BLADERUNNER: Return an error if BladeRunnerEngine::startup() fails
Diffstat (limited to 'engines/bladerunner')
-rw-r--r-- | engines/bladerunner/bladerunner.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/bladerunner/bladerunner.cpp b/engines/bladerunner/bladerunner.cpp index 70f61e75bc..6f6b2f259b 100644 --- a/engines/bladerunner/bladerunner.cpp +++ b/engines/bladerunner/bladerunner.cpp @@ -60,7 +60,8 @@ bool BladeRunnerEngine::hasFeature(EngineFeature f) const { Common::Error BladeRunnerEngine::run() { initGraphics(640, 480, true, &RGB555); - startup(); + if (!startup()) + return Common::Error(Common::kUnknownError, "Failed to initialize resources"); if (warnUserAboutUnsupportedGame()) { init2(); |