aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorColin Snover2017-05-30 21:28:26 -0500
committerColin Snover2017-05-31 22:03:13 -0500
commit03ba3e41f9d840130d531ffee35735835bf7d9cb (patch)
treecdeecb3ef95b2d0e545be45f7e7142817e03da42 /engines
parent520ba69b24148b80c1a91caef32da96b57b3e931 (diff)
downloadscummvm-rg350-03ba3e41f9d840130d531ffee35735835bf7d9cb.tar.gz
scummvm-rg350-03ba3e41f9d840130d531ffee35735835bf7d9cb.tar.bz2
scummvm-rg350-03ba3e41f9d840130d531ffee35735835bf7d9cb.zip
SCI32: Return CD speed in kPlatform
This fixes missing playback of some videos in Rama, like the background video that plays when selecting an email at the computer at the start of the game.
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/engine/kmisc.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/sci/engine/kmisc.cpp b/engines/sci/engine/kmisc.cpp
index 7650d2f215..8b0125e3bf 100644
--- a/engines/sci/engine/kmisc.cpp
+++ b/engines/sci/engine/kmisc.cpp
@@ -647,6 +647,9 @@ reg_t kPlatform32(EngineState *s, int argc, reg_t *argv) {
case kGetColorDepth:
return make_reg(0, /* 256 color */ 2);
case kGetCDSpeed:
+ // The value `4` comes from Rama DOS resource.cfg installed in DOSBox,
+ // and seems to correspond to the highest expected CD speed value
+ return make_reg(0, 4);
case kGetCDDrive:
default:
return NULL_REG;