diff options
Diffstat (limited to 'engines/gob')
-rw-r--r-- | engines/gob/gob.cpp | 10 | ||||
-rw-r--r-- | engines/gob/gob.h | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/engines/gob/gob.cpp b/engines/gob/gob.cpp index e1543e9277..de369c5528 100644 --- a/engines/gob/gob.cpp +++ b/engines/gob/gob.cpp @@ -110,10 +110,10 @@ GobEngine::~GobEngine() { delete[] _startTot0; } -int GobEngine::go() { +Common::Error GobEngine::go() { _init->initGame(0); - return 0; + return Common::kNoError; } const char *GobEngine::getLangDesc(int16 language) const { @@ -177,10 +177,10 @@ bool GobEngine::hasAdlib() const { return (_features & kFeaturesAdlib) != 0; } -int GobEngine::init() { +Common::Error GobEngine::init() { if (!initGameParts()) { GUIErrorMessage("GobEngine::init(): Unknown version of game engine"); - return -1; + return Common::kUnknownError; } _video->setSize(is640()); @@ -259,7 +259,7 @@ int GobEngine::init() { // 640x480. g_system->setFeatureState(OSystem::kFeatureAutoComputeDirtyRects, true); - return 0; + return Common::kNoError; } void GobEngine::pauseEngineIntern(bool pause) { diff --git a/engines/gob/gob.h b/engines/gob/gob.h index 599d7085fb..69f4a20632 100644 --- a/engines/gob/gob.h +++ b/engines/gob/gob.h @@ -191,8 +191,8 @@ private: uint32 _pauseStart; // Engine APIs - virtual int init(); - virtual int go(); + virtual Common::Error init(); + virtual Common::Error go(); virtual bool hasFeature(EngineFeature f) const; virtual void pauseEngineIntern(bool pause); |