From 036ef5fdfd819cf3ddb1fef7e02575a97a8e2f53 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 21 Aug 2019 21:12:32 +0200 Subject: HDB: Mark autosave slots with 'Auto:' in the GUI --- engines/hdb/detection.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'engines/hdb/detection.cpp') 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); } -- cgit v1.2.3