aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise
diff options
context:
space:
mode:
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();