aboutsummaryrefslogtreecommitdiff
path: root/engines/drascula
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/drascula
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/drascula')
-rw-r--r--engines/drascula/drascula.cpp10
-rw-r--r--engines/drascula/drascula.h6
2 files changed, 8 insertions, 8 deletions
diff --git a/engines/drascula/drascula.cpp b/engines/drascula/drascula.cpp
index fce4fa73c6..8bd51123b5 100644
--- a/engines/drascula/drascula.cpp
+++ b/engines/drascula/drascula.cpp
@@ -104,7 +104,7 @@ DrasculaEngine::~DrasculaEngine() {
freeTexts(_textd1);
}
-int DrasculaEngine::init() {
+Common::Error DrasculaEngine::init() {
// Initialize backend
_system->beginGFXTransaction();
initCommonGFX(false);
@@ -170,15 +170,15 @@ int DrasculaEngine::init() {
*textName = 0;
if (!loadDrasculaDat())
- return 1;
+ return Common::kUnknownError;
setupRoomsTable();
loadArchives();
- return 0;
+ return Common::kNoError;
}
-int DrasculaEngine::go() {
+Common::Error DrasculaEngine::go() {
currentChapter = 1; // values from 1 to 6 will start each part of game
loadedDifferentChapter = 0;
@@ -274,7 +274,7 @@ int DrasculaEngine::go() {
currentChapter++;
}
- return 0;
+ return Common::kNoError;
}
void DrasculaEngine::endChapter() {
diff --git a/engines/drascula/drascula.h b/engines/drascula/drascula.h
index 4a00d35d10..a03e5c16da 100644
--- a/engines/drascula/drascula.h
+++ b/engines/drascula/drascula.h
@@ -275,9 +275,9 @@ class DrasculaEngine : public ::Engine {
Common::KeyState _keyPressed;
protected:
- int init();
- int go();
-// void shutdown();
+ // Engine APIs
+ virtual Common::Error init();
+ virtual Common::Error go();
public:
DrasculaEngine(OSystem *syst, const DrasculaGameDescription *gameDesc);