diff options
author | Joost Peters | 2003-12-29 15:50:17 +0000 |
---|---|---|
committer | Joost Peters | 2003-12-29 15:50:17 +0000 |
commit | 9e78d9e14e923a33c9eeb630f65262ca291d1244 (patch) | |
tree | 29e52d4720e09e1b0512fe4cee7ef4f043ef535d /queen/music.cpp | |
parent | 1c06aebe3993e1484b6f0479a254325e5f32df80 (diff) | |
download | scummvm-rg350-9e78d9e14e923a33c9eeb630f65262ca291d1244.tar.gz scummvm-rg350-9e78d9e14e923a33c9eeb630f65262ca291d1244.tar.bz2 scummvm-rg350-9e78d9e14e923a33c9eeb630f65262ca291d1244.zip |
Demo uses different file for music (and disable it for now)
svn-id: r12011
Diffstat (limited to 'queen/music.cpp')
-rw-r--r-- | queen/music.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/queen/music.cpp b/queen/music.cpp index ac4b407200..1d399959a6 100644 --- a/queen/music.cpp +++ b/queen/music.cpp @@ -38,8 +38,13 @@ namespace Queen { _midi->setTimerRate(_driver->getBaseTempo()); _driver->setTimerCallback(this, myTimerProc); - _musicData = vm->resource()->loadFile("AQ.RL", 0, NULL); - _musicDataSize = vm->resource()->fileSize("AQ.RL"); + if (vm->resource()->isDemo()) { + _musicData = vm->resource()->loadFile("AQ8.RL", 0, NULL); + _musicDataSize = vm->resource()->fileSize("AQ8.RL"); + } else { + _musicData = vm->resource()->loadFile("AQ.RL", 0, NULL); + _musicDataSize = vm->resource()->fileSize("AQ.RL"); + } _numSongs = READ_LE_UINT16(_musicData); } |