Skip to content

Commit

Permalink
BLADERUNNER: Return an error if BladeRunnerEngine::startup() fails
Browse files Browse the repository at this point in the history
  • Loading branch information
madmoose authored and sev- committed Sep 29, 2016
1 parent 8cbfd9a commit 5a12394
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engines/bladerunner/bladerunner.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 5a12394

Please sign in to comment.