Commits

Bart van Strien  committed e7c7972

Make sound decoder selection based on extension case-insensitive (issue #662)

  • Participants
  • Parent commits eb2423c

Comments (0)

Files changed (1)

File src/modules/sound/lullaby/Sound.cpp

 
 #include "common/config.h"
 
+#include <algorithm>
+
 #include "Sound.h"
 
 #include "ModPlugDecoder.h"
 sound::Decoder *Sound::newDecoder(love::filesystem::FileData *data, int bufferSize)
 {
 	std::string ext = data->getExtension();
+	std::transform(ext.begin(), ext.end(), ext.begin(), tolower);
 
 	sound::Decoder *decoder = 0;