aboutsummaryrefslogtreecommitdiff
path: root/engines/toltecs/toltecs.cpp
diff options
context:
space:
mode:
authorBenjamin Haisch2008-11-13 00:16:13 +0000
committerWillem Jan Palenstijn2011-11-20 22:43:07 +0100
commit9e78b5d393cadd6ce426f0184e136a38579c819a (patch)
treecd0c6d2352ef4c55849c0cf7763dffbaa1830d0b /engines/toltecs/toltecs.cpp
parent47ae9085899a41f5ed5204183b008d4bff7c4a31 (diff)
downloadscummvm-rg350-9e78b5d393cadd6ce426f0184e136a38579c819a.tar.gz
scummvm-rg350-9e78b5d393cadd6ce426f0184e136a38579c819a.tar.bz2
scummvm-rg350-9e78b5d393cadd6ce426f0184e136a38579c819a.zip
TOLTECS: - Listing savestates via command line or Launcher
- Loading/Saving during run time Other savestate functions yet todo. I'll probably remove the "original" in-game menu and move everything to the GMM.
Diffstat (limited to 'engines/toltecs/toltecs.cpp')
-rw-r--r--engines/toltecs/toltecs.cpp32
1 files changed, 17 insertions, 15 deletions
diff --git a/engines/toltecs/toltecs.cpp b/engines/toltecs/toltecs.cpp
index 4691d23cb2..6e65999737 100644
--- a/engines/toltecs/toltecs.cpp
+++ b/engines/toltecs/toltecs.cpp
@@ -79,16 +79,28 @@ ToltecsEngine::~ToltecsEngine() {
delete _rnd;
}
-int ToltecsEngine::init() {
+Common::Error ToltecsEngine::init() {
// Initialize backend
_system->beginGFXTransaction();
initCommonGFX(true);
_system->initSize(640, 400);
_system->endGFXTransaction();
- return 0;
+ return Common::kNoError;
}
-int ToltecsEngine::go() {
+void ToltecsEngine::syncSoundSettings() {
+ /*
+ _music->setVolume(ConfMan.getInt("music_volume"));
+ _mixer->setVolumeForSoundType(Audio::Mixer::kPlainSoundType, ConfMan.getInt("sfx_volume"));
+ _mixer->setVolumeForSoundType(Audio::Mixer::kSFXSoundType, ConfMan.getInt("sfx_volume"));
+ _mixer->setVolumeForSoundType(Audio::Mixer::kSpeechSoundType, ConfMan.getInt("speech_volume"));
+ _mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, ConfMan.getInt("music_volume"));
+ */
+}
+
+Common::Error ToltecsEngine::go() {
+
+ _isSaveAllowed = true;
_quitGame = false;
_counter01 = 0;
@@ -140,16 +152,6 @@ int ToltecsEngine::go() {
_system->showMouse(true);
-//#define TEST_MOVIE
-#ifdef TEST_MOVIE
- _screen->registerFont(0, 0x0D);
- _screen->registerFont(1, 0x0E);
- //_moviePlayer->playMovie(0x000012D8);
- //_moviePlayer->playMovie(0x000012D7);
- //_moviePlayer->playMovie(0x);
- _moviePlayer->playMovie(0x000012E0);
-#endif
-
//#define TEST_MENU
#ifdef TEST_MENU
_screen->registerFont(0, 0x0D);
@@ -183,7 +185,7 @@ int ToltecsEngine::go() {
delete _sound;
- return 0;
+ return Common::kNoError;
}
void ToltecsEngine::loadScene(uint resIndex) {
@@ -259,7 +261,7 @@ void ToltecsEngine::updateInput() {
// FIXME: This is just for debugging
switch (event.kbd.keycode) {
case Common::KEYCODE_F7:
- savegame("toltecs.001");
+ savegame("toltecs.001", "Quicksave");
break;
case Common::KEYCODE_F9:
loadgame("toltecs.001");