aboutsummaryrefslogtreecommitdiff
path: root/engines/gob
diff options
context:
space:
mode:
authorMax Horn2008-11-06 17:05:54 +0000
committerMax Horn2008-11-06 17:05:54 +0000
commit40136f25909bd8773cac0f08740a36037395e9a7 (patch)
treebf61db949f9942c10cad667042b1e2403a9b51cd /engines/gob
parent4c8f221fb8f5735932652c3279efd6f2e941d948 (diff)
downloadscummvm-rg350-40136f25909bd8773cac0f08740a36037395e9a7.tar.gz
scummvm-rg350-40136f25909bd8773cac0f08740a36037395e9a7.tar.bz2
scummvm-rg350-40136f25909bd8773cac0f08740a36037395e9a7.zip
Switched various Engine APIs to use Common::Error
svn-id: r34916
Diffstat (limited to 'engines/gob')
-rw-r--r--engines/gob/gob.cpp10
-rw-r--r--engines/gob/gob.h4
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);