summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/FileMonitor.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2014-08-25 19:56:03 -0400
committerLioncash <mathew1800@gmail.com>2014-08-25 19:56:09 -0400
commitf18fec81fe5144cbf72233bab255abb45b55e71c (patch)
tree9c4ef751616e656373677f5e0a7f78ad39fd622a /Source/Core/DiscIO/FileMonitor.cpp
parent25bd734578f60fe1ace9bf9581b6cdde0888608c (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.cpp2
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