DiscIO: Make the unordered set in IsSoundFile static

Doesn't need to be instantiated every time the function is called.
This commit is contained in:
Lioncash 2014-08-25 19:56:03 -04:00
parent 25bd734578
commit f18fec81fe
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ bool IsSoundFile(const std::string& filename)
SplitPath(filename, nullptr, nullptr, &extension);
std::transform(extension.begin(), extension.end(), extension.begin(), ::tolower);
std::unordered_set<std::string> extensions = {
static std::unordered_set<std::string> extensions = {
".adp", // 1080 Avalanche, Crash Bandicoot, etc.
".adx", // Sonic Adventure 2 Battle, etc.
".afc", // Zelda WW