aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/xeen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/xeen/xeen.cpp')
-rw-r--r--engines/xeen/xeen.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/engines/xeen/xeen.cpp b/engines/xeen/xeen.cpp
index 1952dc16c0..5f72623e91 100644
--- a/engines/xeen/xeen.cpp
+++ b/engines/xeen/xeen.cpp
@@ -266,7 +266,7 @@ void XeenEngine::gameLoop() {
// Load any pending savegame
int saveSlot = _loadSaveSlot;
_loadSaveSlot = -1;
- _saves->loadGameState(saveSlot);
+ (void)_saves->loadGameState(saveSlot);
_interface->drawParty(true);
}
@@ -322,4 +322,16 @@ void XeenEngine::saveSettings() {
ConfMan.flushToDisk();
}
+void XeenEngine::GUIError(const Common::String &msg) {
+ GUIErrorMessage(msg);
+}
+
+void XeenEngine::autoSaveCheck(int &lastSaveTime) {
+ if (shouldPerformAutoSave(lastSaveTime) && canSaveGameStateCurrently() &&
+ (_map && !(_map->mazeData()._mazeFlags & RESTRICTION_SAVE))) {
+ _saves->doAutosave();
+ lastSaveTime = g_system->getMillis();
+ }
+}
+
} // End of namespace Xeen