diff options
author | Paul Gilbert | 2012-12-02 22:33:01 +1100 |
---|---|---|
committer | Paul Gilbert | 2012-12-02 22:33:01 +1100 |
commit | 3841a0d0068498e23895a565c441bda62d65dc03 (patch) | |
tree | 655803e45fc7c4dd2d158affc64171b38275edff /engines | |
parent | 222c3f2661f1c5a747728405ed934f3ae273f5f1 (diff) | |
download | scummvm-rg350-3841a0d0068498e23895a565c441bda62d65dc03.tar.gz scummvm-rg350-3841a0d0068498e23895a565c441bda62d65dc03.tar.bz2 scummvm-rg350-3841a0d0068498e23895a565c441bda62d65dc03.zip |
HOPKINS: Bugfix for loading APC music files in the Windows versions
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hopkins/sound.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/hopkins/sound.cpp b/engines/hopkins/sound.cpp index 6f9f17a937..08f6f4abff 100644 --- a/engines/hopkins/sound.cpp +++ b/engines/hopkins/sound.cpp @@ -333,7 +333,8 @@ void SoundManager::LOAD_MUSIC(const Common::String &file) { s[2] = '\0'; mwavIndex = atol(&s[0]); - filename = Common::String::format("%s_%s.WAV", file.c_str(), &s[0]); + filename = Common::String::format("%s_%s.%s", file.c_str(), &s[0], + (_vm->getPlatform() == Common::kPlatformWindows) ? "APC" : "WAV"); LOAD_MSAMPLE(mwavIndex, filename); assert(destIndex < MUSIC_WAVE_COUNT); |