Minor fixes

This commit is contained in:
Jérôme Leclercq
2021-06-04 18:02:28 +02:00
parent 8fe11711a3
commit 4b3b595a99
15 changed files with 47 additions and 36 deletions

View File

@@ -145,7 +145,11 @@ namespace Nz
bool IsSupported(const std::string_view& extension)
{
return extension == "ogg";
static std::set<std::string_view> supportedExtensions = {
"oga", "ogg", "ogm", "ogv", "ogx", "opus", "spx"
};
return supportedExtensions.find(extension) != supportedExtensions.end();
}
Ternary CheckOgg(Stream& stream)