aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/hdb.cpp4
-rw-r--r--engines/hdb/hdb.h2
-rw-r--r--engines/hdb/saveload.cpp4
3 files changed, 5 insertions, 5 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp
index ec2aba44ae..1f45a40749 100644
--- a/engines/hdb/hdb.cpp
+++ b/engines/hdb/hdb.cpp
@@ -256,7 +256,7 @@ bool HDBGame::startMap(const char *name) {
//
if (!scumm_strnicmp(name, "map", 3) && scumm_stricmp(name, "map30")) {
_menu->fillSavegameSlots();
- saveGameState(0); // we ignore the slot parameter in everything else since we just keep saving...
+ saveGameState(0, Common::String::format("Autosave %s", name)); // we ignore the slot parameter in everything else since we just keep saving...
}
return true;
}
@@ -878,7 +878,7 @@ Common::Error HDBGame::run() {
_sound->playSound(SND_VORTEX_SAVE);
_ai->stopEntity(e);
_menu->fillSavegameSlots();
- saveGameState(_saveInfo.slot);
+ saveGameState(_saveInfo.slot, "FIXME"); // Add here date/level name // TODO
_saveInfo.active = false;
}
diff --git a/engines/hdb/hdb.h b/engines/hdb/hdb.h
index 2b41c7f3ab..f09b81de39 100644
--- a/engines/hdb/hdb.h
+++ b/engines/hdb/hdb.h
@@ -157,7 +157,7 @@ public:
_changeLevel = true;
}
- Common::Error saveGameState(int slot);
+ Common::Error saveGameState(int slot, const Common::String &desc);
Common::Error loadGameState(int slot);
void saveGame(Common::OutSaveFile *out);
void loadGame(Common::InSaveFile *in);
diff --git a/engines/hdb/saveload.cpp b/engines/hdb/saveload.cpp
index 394b8042b9..5f977fe70f 100644
--- a/engines/hdb/saveload.cpp
+++ b/engines/hdb/saveload.cpp
@@ -24,7 +24,7 @@
namespace HDB {
-Common::Error HDBGame::saveGameState(int slot) {
+Common::Error HDBGame::saveGameState(int slot, const Common::String &desc) {
// If no map is loaded, don't try to save
if (!g_hdb->_map->isLoaded())
@@ -128,4 +128,4 @@ void HDBGame::loadGame(Common::InSaveFile *in) {
_gfx->turnOffFade();
}
-} // End of Namespace \ No newline at end of file
+} // End of Namespace