aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorColin Snover2017-10-01 23:02:01 -0500
committerColin Snover2017-10-03 18:56:35 -0500
commit88cd54c05797c83d24b9cd88a6e70bfecdcd5ed0 (patch)
treee55339a053c46ef9423d8136256b22fa3a8eb696 /engines/sci
parent815e3920a716e75761948599b836af010025a48d (diff)
downloadscummvm-rg350-88cd54c05797c83d24b9cd88a6e70bfecdcd5ed0.tar.gz
scummvm-rg350-88cd54c05797c83d24b9cd88a6e70bfecdcd5ed0.tar.bz2
scummvm-rg350-88cd54c05797c83d24b9cd88a6e70bfecdcd5ed0.zip
SCI32: Restore gameplay time in RAMA
This will cause non-linear time shifts in the system timer that the game's custom save logic may not expect, but in initial testing the game doesn't seem to care about this. Fixes Trac#10259.
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/kfile.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/sci/engine/kfile.cpp b/engines/sci/engine/kfile.cpp
index 51a3ceadf1..5edac18bc0 100644
--- a/engines/sci/engine/kfile.cpp
+++ b/engines/sci/engine/kfile.cpp
@@ -469,6 +469,9 @@ reg_t kFileIOOpen(EngineState *s, int argc, reg_t *argv) {
Graphics::skipThumbnail(*in);
valid = true;
}
+ if (meta.version >= 34) {
+ g_sci->setTickCount(meta.playTime);
+ }
}
} else {
out = saveFileMan->openForSaving(fileName);