aboutsummaryrefslogtreecommitdiff
path: root/simon
diff options
context:
space:
mode:
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;
}