From ae1403713cdccd98a9bab656db74fc6172c82cbb Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Fri, 23 Nov 2012 17:55:09 +0100 Subject: KYRA: Some slight cleanup. --- engines/kyra/staticres_lol.cpp | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'engines/kyra') 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" }; -- cgit v1.2.3