aboutsummaryrefslogtreecommitdiff
path: root/engines/toltecs/toltecs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/toltecs/toltecs.cpp')
-rw-r--r--engines/toltecs/toltecs.cpp19
1 files changed, 16 insertions, 3 deletions
diff --git a/engines/toltecs/toltecs.cpp b/engines/toltecs/toltecs.cpp
index 7fde696732..9a0f6694b2 100644
--- a/engines/toltecs/toltecs.cpp
+++ b/engines/toltecs/toltecs.cpp
@@ -105,7 +105,9 @@ Common::Error ToltecsEngine::run() {
_counter02 = 0;
_movieSceneFlag = false;
_flag01 = 0;
-
+
+ _saveLoadRequested = 0;
+
_cameraX = 0;
_cameraY = 0;
_newCameraX = 0;
@@ -148,10 +150,10 @@ Common::Error ToltecsEngine::run() {
_sound = new Sound(this);
- _system->showMouse(true);
-
syncSoundSettings();
+ _system->showMouse(true);
+
setupSysStrings();
//#define TEST_MENU
@@ -212,6 +214,17 @@ void ToltecsEngine::setupSysStrings() {
// TODO: Set yes/no chars
}
+void ToltecsEngine::requestSavegame(int slotNum, Common::String &description) {
+ _saveLoadRequested = 2;
+ _saveLoadSlot = slotNum;
+ _saveLoadDescription = description;
+}
+
+void ToltecsEngine::requestLoadgame(int slotNum) {
+ _saveLoadRequested = 1;
+ _saveLoadSlot = slotNum;
+}
+
void ToltecsEngine::loadScene(uint resIndex) {
// TODO