aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMax Horn2009-03-01 04:42:46 +0000
committerMax Horn2009-03-01 04:42:46 +0000
commitdd98126423d915c19baf43184ba40fb0d9a68b64 (patch)
treedc6c65d5ca3d7c5c69f54e9dc980067980a2ae9a /engines/sci
parent3fcbda829a2aa17cbaf6423d34f69214b91b0e6c (diff)
downloadscummvm-rg350-dd98126423d915c19baf43184ba40fb0d9a68b64.tar.gz
scummvm-rg350-dd98126423d915c19baf43184ba40fb0d9a68b64.tar.bz2
scummvm-rg350-dd98126423d915c19baf43184ba40fb0d9a68b64.zip
Engines: Fused several init&go methods into a single run method
svn-id: r39003
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/sci.cpp7
-rw-r--r--engines/sci/sci.h14
2 files changed, 4 insertions, 17 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp
index ff3c8c4e79..487e3378de 100644
--- a/engines/sci/sci.cpp
+++ b/engines/sci/sci.cpp
@@ -170,7 +170,7 @@ SciEngine::~SciEngine() {
delete _console;
}
-Common::Error SciEngine::init() {
+Common::Error SciEngine::run() {
initGraphics(320, 200, false);
// Create debugger console. It requires GFX to be initialized
@@ -178,11 +178,6 @@ Common::Error SciEngine::init() {
// Additional setup.
printf("SciEngine::init\n");
- return Common::kNoError;
-}
-
-Common::Error SciEngine::go() {
- // Your main even loop should be (invoked from) here.
/* bool end = false;
Common::EventManager *em = _system->getEventManager();
diff --git a/engines/sci/sci.h b/engines/sci/sci.h
index 0f10df0c16..480ec66ee8 100644
--- a/engines/sci/sci.h
+++ b/engines/sci/sci.h
@@ -76,17 +76,9 @@ public:
SciEngine(OSystem *syst, const SciGameDescription *desc);
~SciEngine();
- Common::Error init();
- Common::Error go();
- virtual Common::Error run() {
- Common::Error err;
- err = init();
- if (err != Common::kNoError)
- return err;
- return go();
- }
-
- GUI::Debugger *getDebugger() { return _console; }
+ // Engine APIs
+ virtual Common::Error run();
+ virtual GUI::Debugger *getDebugger() { return _console; }
const char* getGameID() const;
int getResourceVersion() const;