diff options
| author | Lioncash <mathew1800@gmail.com> | 2014-08-25 19:56:03 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2014-08-25 19:56:09 -0400 |
| commit | f18fec81fe5144cbf72233bab255abb45b55e71c (patch) | |
| tree | 9c4ef751616e656373677f5e0a7f78ad39fd622a /Source/Core/DiscIO/FileMonitor.cpp | |
| parent | 25bd734578f60fe1ace9bf9581b6cdde0888608c (diff) | |
DiscIO: Make the unordered set in IsSoundFile static
Doesn't need to be instantiated every time the function is called.
Diffstat (limited to 'Source/Core/DiscIO/FileMonitor.cpp')
| -rw-r--r-- | Source/Core/DiscIO/FileMonitor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/FileMonitor.cpp b/Source/Core/DiscIO/FileMonitor.cpp index ce8799b227..723a02eb2c 100644 --- a/Source/Core/DiscIO/FileMonitor.cpp +++ b/Source/Core/DiscIO/FileMonitor.cpp @@ -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 |
