aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-08-19 23:49:29 +0200
committerEinar Johan Trøan Sømåen2012-08-19 23:49:29 +0200
commit246109839b9c196e9181a6f619c15694456b9aec (patch)
treeb6f6d18f041551dfbefc7b717c7add227426a1c3 /engines
parenteacb0b169814345271d9d8e947d3d4fefe06ad7f (diff)
downloadscummvm-rg350-246109839b9c196e9181a6f619c15694456b9aec.tar.gz
scummvm-rg350-246109839b9c196e9181a6f619c15694456b9aec.tar.bz2
scummvm-rg350-246109839b9c196e9181a6f619c15694456b9aec.zip
WINTERMUTE: Be case-insensitive when testing for sound-format.
Diffstat (limited to 'engines')
-rw-r--r--engines/wintermute/base/sound/base_sound_buffer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/wintermute/base/sound/base_sound_buffer.cpp b/engines/wintermute/base/sound/base_sound_buffer.cpp
index bb4d5ba375..e2d9c8c13f 100644
--- a/engines/wintermute/base/sound/base_sound_buffer.cpp
+++ b/engines/wintermute/base/sound/base_sound_buffer.cpp
@@ -102,6 +102,7 @@ bool BaseSoundBuffer::loadFromFile(const Common::String &filename, bool forceRel
return STATUS_FAILED;
}
Common::String strFilename(filename);
+ strFilename.toLowercase();
if (strFilename.hasSuffix(".ogg")) {
_stream = Audio::makeVorbisStream(_file, DisposeAfterUse::YES);
} else if (strFilename.hasSuffix(".wav")) {