Skip to content

Commit

Permalink
SCI32: Return CD speed in kPlatform
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
csnover committed Jun 1, 2017
1 parent 520ba69 commit 03ba3e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions engines/sci/engine/kmisc.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 03ba3e4

Please sign in to comment.