From 88cd54c05797c83d24b9cd88a6e70bfecdcd5ed0 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Sun, 1 Oct 2017 23:02:01 -0500 Subject: 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. --- engines/sci/engine/kfile.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engines/sci') 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); -- cgit v1.2.3