aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/staticres_lol.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2012-11-23 17:55:09 +0100
committerJohannes Schickel2012-11-23 17:56:28 +0100
commitae1403713cdccd98a9bab656db74fc6172c82cbb (patch)
tree4b23683e5b685c552d93c430ec516d9b6de66812 /engines/kyra/staticres_lol.cpp
parent415334fbe51b6c1332db11a113069c62c1141608 (diff)
downloadscummvm-rg350-ae1403713cdccd98a9bab656db74fc6172c82cbb.tar.gz
scummvm-rg350-ae1403713cdccd98a9bab656db74fc6172c82cbb.tar.bz2
scummvm-rg350-ae1403713cdccd98a9bab656db74fc6172c82cbb.zip
KYRA: Some slight cleanup.
Diffstat (limited to 'engines/kyra/staticres_lol.cpp')
-rw-r--r--engines/kyra/staticres_lol.cpp26
1 files changed, 14 insertions, 12 deletions
diff --git a/engines/kyra/staticres_lol.cpp b/engines/kyra/staticres_lol.cpp
index 4ee5b12b76..f97424005d 100644
--- a/engines/kyra/staticres_lol.cpp
+++ b/engines/kyra/staticres_lol.cpp
@@ -215,18 +215,20 @@ void StaticResource::freeButtonDefs(void *&ptr, int &size) {
void LoLEngine::initStaticResource() {
// assign music resource data.
- if (_flags.isDemo) {
- static const char *const file[] = { "LOREDEMO" };
- SoundResourceInfo_TownsPC98V2 resInfoDemo(file, ARRAYSIZE(file), 0, 0, 0);
- _sound->initAudioResourceInfo(kMusicIntro, &resInfoDemo);
- } else if (_flags.platform == Common::kPlatformPC) {
- static const char *const intro[] = { "LOREINTR" };
- static const char *const finale[] = { "LOREFINL" };
- SoundResourceInfo_PC resInfoIntro(intro, ARRAYSIZE(intro));
- SoundResourceInfo_PC resInfoFinale(finale, ARRAYSIZE(finale));
- _sound->initAudioResourceInfo(kMusicIntro, &resInfoIntro);
- // In game music file handling is different, thus does not need a file list.
- _sound->initAudioResourceInfo(kMusicFinale, &resInfoFinale);
+ if (_flags.platform == Common::kPlatformPC) {
+ if (_flags.isDemo) {
+ static const char *const file[] = { "LOREDEMO" };
+ SoundResourceInfo_PC resInfoDemo(file, ARRAYSIZE(file));
+ _sound->initAudioResourceInfo(kMusicIntro, &resInfoDemo);
+ } else {
+ static const char *const intro[] = { "LOREINTR" };
+ static const char *const finale[] = { "LOREFINL" };
+ SoundResourceInfo_PC resInfoIntro(intro, ARRAYSIZE(intro));
+ SoundResourceInfo_PC resInfoFinale(finale, ARRAYSIZE(finale));
+ _sound->initAudioResourceInfo(kMusicIntro, &resInfoIntro);
+ // In game music file handling is different, thus does not need a file list.
+ _sound->initAudioResourceInfo(kMusicFinale, &resInfoFinale);
+ }
} else if (_flags.platform == Common::kPlatformPC98) {
static const char *const fileListIntro[] = { 0, "lore84.86", "lore82.86", 0, 0, 0, "lore83.86", "lore81.86" };
static const char *const fileListFinale[] = { 0, 0, "lore85.86", "lore86.86", "lore87.86" };