aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise
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/cruise
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/cruise')
-rw-r--r--engines/cruise/cruise.cpp8
-rw-r--r--engines/cruise/cruise.h6
2 files changed, 8 insertions, 6 deletions
diff --git a/engines/cruise/cruise.cpp b/engines/cruise/cruise.cpp
index f9487165e1..c84f4d7361 100644
--- a/engines/cruise/cruise.cpp
+++ b/engines/cruise/cruise.cpp
@@ -70,7 +70,7 @@ CruiseEngine::~CruiseEngine() {
#endif
}
-int CruiseEngine::init() {
+Common::Error CruiseEngine::init() {
// Initialize backend
_system->beginGFXTransaction();
initCommonGFX(false);
@@ -79,16 +79,16 @@ int CruiseEngine::init() {
initialize();
- return 0;
+ return Common::kNoError;
}
-int CruiseEngine::go() {
+Common::Error CruiseEngine::go() {
Cruise::changeCursor(Cruise::CURSOR_NORMAL);
CursorMan.showMouse(true);
Cruise::mainLoop();
- return 0;
+ return Common::kNoError;
}
void CruiseEngine::initialize() {
diff --git a/engines/cruise/cruise.h b/engines/cruise/cruise.h
index 4a6bcff498..ad5b1100cb 100644
--- a/engines/cruise/cruise.h
+++ b/engines/cruise/cruise.h
@@ -44,8 +44,10 @@ struct CRUISEGameDescription;
class CruiseEngine:public Engine {
protected:
- int init();
- int go();
+ // Engine APIs
+ virtual Common::Error init();
+ virtual Common::Error go();
+
void shutdown();
bool initGame();