aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorScott Thomas2011-04-11 19:27:28 +0930
committerScott Thomas2011-04-11 19:27:28 +0930
commit412a152e6bd64e70d82a9a8820face2e7204f127 (patch)
treedbd88a81f92a2e4d2982a1e221cab7794c7ca126 /engines
parent4a39baa095ae0df93234577084237e3702aa546d (diff)
downloadscummvm-rg350-412a152e6bd64e70d82a9a8820face2e7204f127.tar.gz
scummvm-rg350-412a152e6bd64e70d82a9a8820face2e7204f127.tar.bz2
scummvm-rg350-412a152e6bd64e70d82a9a8820face2e7204f127.zip
GROOVIE: T7G iOS patches in 7/11 soundtrack files during intro sequence
Diffstat (limited to 'engines')
-rw-r--r--engines/groovie/music.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/engines/groovie/music.cpp b/engines/groovie/music.cpp
index bc8131379b..3bbac2a570 100644
--- a/engines/groovie/music.cpp
+++ b/engines/groovie/music.cpp
@@ -768,10 +768,17 @@ bool MusicPlayerMPEG4::load(uint32 fileref, bool loop) {
if (len < 4)
return false; // This shouldn't actually occur
- // RL still says xmi, but we're after external m4a
- info.filename.setChar('m', len-3);
- info.filename.setChar('4', len-2);
- info.filename.setChar('a', len-1);
+ // iOS port provides alternative intro sequence music
+ if (info.filename == "gu39.xmi") {
+ info.filename = "intro.m4a";
+ } else if (info.filename == "gu32.xmi") {
+ info.filename = "foyer.m4a";
+ } else {
+ // RL still says xmi, but we're after external m4a
+ info.filename.setChar('m', len-3);
+ info.filename.setChar('4', len-2);
+ info.filename.setChar('a', len-1);
+ }
// Create the audio stream
Audio::AudioStream *audStream = Audio::makeQuickTimeStream(info.filename);