From 40136f25909bd8773cac0f08740a36037395e9a7 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 6 Nov 2008 17:05:54 +0000 Subject: Switched various Engine APIs to use Common::Error svn-id: r34916 --- engines/cruise/cruise.cpp | 8 ++++---- engines/cruise/cruise.h | 6 ++++-- 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'engines/cruise') 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(); -- cgit v1.2.3