aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/detection.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2019-08-21 21:12:32 +0200
committerEugene Sandulenko2019-09-03 17:17:35 +0200
commit036ef5fdfd819cf3ddb1fef7e02575a97a8e2f53 (patch)
treecf6fc47a132324f24557cc2fc395ca55f1b6d710 /engines/hdb/detection.cpp
parent73b6724b929c78bdc4724b6648b03ed66a29bab7 (diff)
downloadscummvm-rg350-036ef5fdfd819cf3ddb1fef7e02575a97a8e2f53.tar.gz
scummvm-rg350-036ef5fdfd819cf3ddb1fef7e02575a97a8e2f53.tar.bz2
scummvm-rg350-036ef5fdfd819cf3ddb1fef7e02575a97a8e2f53.zip
HDB: Mark autosave slots with 'Auto:' in the GUI
Diffstat (limited to 'engines/hdb/detection.cpp')
-rw-r--r--engines/hdb/detection.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/hdb/detection.cpp b/engines/hdb/detection.cpp
index 7da1e69ebe..e0d10593d8 100644
--- a/engines/hdb/detection.cpp
+++ b/engines/hdb/detection.cpp
@@ -22,6 +22,7 @@
#include "base/plugins.h"
+#include "common/debug.h"
#include "common/translation.h"
#include "engines/advancedDetector.h"
@@ -236,11 +237,15 @@ SaveStateList HDBMetaEngine::listSaves(const char *target) const {
uint32 timeSeconds = in->readUint32LE();;
in->read(mapName, 32);
- warning("mapName: %s playtime: %d", mapName, timeSeconds);
+ debug(1, "mapName: %s playtime: %d", mapName, timeSeconds);
desc.setSaveSlot(slotNum);
desc.setPlayTime(timeSeconds * 1000);
- desc.setDescription(mapName);
+
+ if (slotNum < 8)
+ desc.setDescription(Common::String::format("Auto: %s", mapName));
+ else
+ desc.setDescription(mapName);
saveList.push_back(desc);
}