aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2008-01-27 15:56:56 +0000
committerJohannes Schickel2008-01-27 15:56:56 +0000
commitbcdfb4817292e583e2dbbcc76b3775fb49ec775f (patch)
tree804206966a0cdbc3451722038b308db9c60c6746
parente431f827ec63316a99942f9197d7fd7de9fc6ac4 (diff)
downloadscummvm-rg350-bcdfb4817292e583e2dbbcc76b3775fb49ec775f.tar.gz
scummvm-rg350-bcdfb4817292e583e2dbbcc76b3775fb49ec775f.tar.bz2
scummvm-rg350-bcdfb4817292e583e2dbbcc76b3775fb49ec775f.zip
Cleanup.
svn-id: r30657
-rw-r--r--engines/kyra/kyra.cpp2
-rw-r--r--engines/kyra/kyra.h2
-rw-r--r--engines/kyra/kyra_v1.cpp3
-rw-r--r--engines/kyra/kyra_v2.cpp4
4 files changed, 4 insertions, 7 deletions
diff --git a/engines/kyra/kyra.cpp b/engines/kyra/kyra.cpp
index faa8a83e7e..b0bc58ef49 100644
--- a/engines/kyra/kyra.cpp
+++ b/engines/kyra/kyra.cpp
@@ -140,10 +140,12 @@ int KyraEngine::init() {
error("_staticres->init() failed");
_timer = new TimerManager(this, _system);
assert(_timer);
+ setupTimers();
_scriptInterpreter = new ScriptHelper(this);
assert(_scriptInterpreter);
setupOpcodeTable();
+ readSettings();
_lang = 0;
Common::Language lang = Common::parseLanguage(ConfMan.get("language"));
diff --git a/engines/kyra/kyra.h b/engines/kyra/kyra.h
index 7460a34e9c..ea322f4d77 100644
--- a/engines/kyra/kyra.h
+++ b/engines/kyra/kyra.h
@@ -168,6 +168,8 @@ protected:
uint16 _gameSpeed;
// timer
+ virtual void setupTimers() = 0;
+
virtual void setWalkspeed(uint8 speed) = 0;
// detection
diff --git a/engines/kyra/kyra_v1.cpp b/engines/kyra/kyra_v1.cpp
index cb65783558..8630fc9806 100644
--- a/engines/kyra/kyra_v1.cpp
+++ b/engines/kyra/kyra_v1.cpp
@@ -191,7 +191,6 @@ int KyraEngine_v1::init() {
_sound->setVolume(255);
_sound->loadSoundFile(0);
- setupTimers();
setupButtonData();
setupMenu();
@@ -264,8 +263,6 @@ int KyraEngine_v1::init() {
assert(_movFacingTable);
_movFacingTable[0] = 8;
- readSettings();
-
_skipFlag = false;
_marbleVaseItem = -1;
diff --git a/engines/kyra/kyra_v2.cpp b/engines/kyra/kyra_v2.cpp
index 496a7bd709..529b4ffbd5 100644
--- a/engines/kyra/kyra_v2.cpp
+++ b/engines/kyra/kyra_v2.cpp
@@ -129,10 +129,6 @@ int KyraEngine_v2::init() {
_text = new TextDisplayer_v2(this, _screen);
assert(_text);
- setupTimers();
-
- readSettings();
-
_screen->loadFont(_screen->FID_6_FNT, "6.FNT");
_screen->loadFont(_screen->FID_8_FNT, "8FAT.FNT");
_screen->loadFont(_screen->FID_GOLDFONT_FNT, "GOLDFONT.FNT");