mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Make sound decoder selection based on extension case-insensitive (issue #662)
This commit is contained in:
@@ -20,6 +20,8 @@
|
||||
|
||||
#include "common/config.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "Sound.h"
|
||||
|
||||
#include "ModPlugDecoder.h"
|
||||
@@ -57,6 +59,7 @@ const char *Sound::getName() const
|
||||
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user