mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
Fixed sound detection for Jones CD
svn-id: r46030
This commit is contained in:
parent
ece0444f9c
commit
fd116847bd
@ -516,6 +516,21 @@ SciVersion EngineState::detectDoSoundType() {
|
||||
}
|
||||
}
|
||||
|
||||
// Jones CD and perhaps others were in the middle of the transition from SCI1 old to SCI1 new
|
||||
// sound code, and had some temporary selector methods in the Sound object. Check for these here,
|
||||
// and set the doSound type to SCI1 new if they're found
|
||||
if (getSciVersion() == SCI_VERSION_1_MIDDLE) {
|
||||
reg_t tmp;
|
||||
Selector slc = _kernel->findSelector("cue");
|
||||
if (slc != -1) {
|
||||
if (lookup_selector(_segMan, _segMan->findObjectByName("Sound"), slc, NULL, &tmp) == kSelectorMethod) {
|
||||
// The Sound object has a temporary cue selector, therefore the game is using late
|
||||
// SCI1 sound functions
|
||||
_doSoundType = SCI_VERSION_1_LATE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
debugC(1, kDebugLevelSound, "Detected DoSound type: %s", getSciVersionDesc(_doSoundType).c_str());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user