mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 14:50:17 +00:00
SCI: Return correct kSciAudioCD value on failure
SSCI returns 0 when CD audio track can't be selected
This commit is contained in:
parent
c71db70d25
commit
3c71df687b
@ -515,8 +515,7 @@ int AudioPlayer::audioCdPlay(int track, int start, int duration) {
|
||||
|
||||
// Subtract one from track. KQ6 starts at track 1, while ScummVM
|
||||
// ignores the data track and considers track 2 to be track 1.
|
||||
g_system->getAudioCDManager()->play(track - 1, 1, start, duration);
|
||||
return 1;
|
||||
return g_system->getAudioCDManager()->play(track - 1, 1, start, duration) ? 1 : 0;
|
||||
} else {
|
||||
// Jones in the Fast Lane CD Audio format
|
||||
uint32 length = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user