[Scummvm-git-logs] scummvm master -> 03ba3e41f9d840130d531ffee35735835bf7d9cb

csnover csnover at users.noreply.github.com
Thu Jun 1 05:07:45 CEST 2017


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
03ba3e41f9 SCI32: Return CD speed in kPlatform


Commit: 03ba3e41f9d840130d531ffee35735835bf7d9cb
    https://github.com/scummvm/scummvm/commit/03ba3e41f9d840130d531ffee35735835bf7d9cb
Author: Colin Snover (github.com at zetafleet.com)
Date: 2017-05-31T22:03:13-05:00

Commit Message:
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.

Changed paths:
    engines/sci/engine/kmisc.cpp


diff --git a/engines/sci/engine/kmisc.cpp b/engines/sci/engine/kmisc.cpp
index 7650d2f..8b0125e 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;





More information about the Scummvm-git-logs mailing list