mirror of
https://github.com/love2d/love.git
synced 2026-08-15 07:41:11 +02:00
minor cleanup of some audio decoder code.
This commit is contained in:
@@ -84,12 +84,11 @@ bool ModPlugDecoder::accepts(const std::string &ext)
|
||||
"dsm", "far", "it", "j2b", "mdl", "med",
|
||||
"mid", "mod", "mt2", "mtm", "okt", "pat",
|
||||
"psm", "s3m", "stm", "ult", "umx", "xm",
|
||||
""
|
||||
};
|
||||
|
||||
for (int i = 0; !(supported[i].empty()); i++)
|
||||
for (const auto &s : supported)
|
||||
{
|
||||
if (supported[i].compare(ext) == 0)
|
||||
if (s.compare(ext) == 0)
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user