aboutsummaryrefslogtreecommitdiff
path: root/simon
diff options
context:
space:
mode:
authorTravis Howell2003-05-25 03:31:01 +0000
committerTravis Howell2003-05-25 03:31:01 +0000
commit3e6cf177444452e0504ce1c5d846b3ae13aa6ea8 (patch)
treee936a59631803d5cf7e3d7d3731241268e02609c /simon
parent64e66a4500c7a15fb785b8e1db7fda9f09c24d67 (diff)
downloadscummvm-rg350-3e6cf177444452e0504ce1c5d846b3ae13aa6ea8.tar.gz
scummvm-rg350-3e6cf177444452e0504ce1c5d846b3ae13aa6ea8.tar.bz2
scummvm-rg350-3e6cf177444452e0504ce1c5d846b3ae13aa6ea8.zip
Small midi cleanup
svn-id: r7929
Diffstat (limited to 'simon')
-rw-r--r--simon/simon.cpp19
1 files changed, 4 insertions, 15 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp
index 8a238294a9..55ac41fbe1 100644
--- a/simon/simon.cpp
+++ b/simon/simon.cpp
@@ -5299,20 +5299,6 @@ void SimonState::loadMusic (uint music) {
}
// TODO Add Protracker support for simon1amiga/cd32
warning("playMusic - Load %dtune attempt", music);
- } else if (_game & GF_DEMO) {
- midi.stop();
- midi.setLoop (true);
- char buf[50];
- File *f = new File();
- sprintf(buf, "MOD%d.MUS", music);
- f->open(buf, _gameDataPath);
- if (f->isOpen() == false) {
- warning("Can't load music from '%s'", buf);
- return;
- }
- midi.loadS1D (f);
- delete f;
- midi.startTrack (0);
} else {
midi.stop();
midi.setLoop (true); // Must do this BEFORE loading music. (GMF may have its own override.)
@@ -5340,7 +5326,10 @@ void SimonState::loadMusic (uint music) {
warning("Can't load music from '%s'", buf);
return;
}
- midi.loadSMF (f, music);
+ if (_game & GF_DEMO)
+ midi.loadS1D (f);
+ else
+ midi.loadSMF (f, music);
delete f;
}