aboutsummaryrefslogtreecommitdiff
path: root/engines/savestate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/savestate.cpp')
-rw-r--r--engines/savestate.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/savestate.cpp b/engines/savestate.cpp
index 3cd81a2ff6..368f59ef51 100644
--- a/engines/savestate.cpp
+++ b/engines/savestate.cpp
@@ -70,3 +70,9 @@ void SaveStateDescriptor::setPlayTime(int hours, int minutes) {
snprintf(buffer, 32, "%.2d:%.2d", hours, minutes);
setVal("play_time", buffer);
}
+
+void SaveStateDescriptor::setPlayTime(uint32 msecs) {
+ uint minutes = msecs / 60000;
+ setPlayTime(minutes / 60, minutes % 60);
+}
+