From f18fec81fe5144cbf72233bab255abb45b55e71c Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 25 Aug 2014 19:56:03 -0400 Subject: [PATCH] DiscIO: Make the unordered set in IsSoundFile static Doesn't need to be instantiated every time the function is called. --- Source/Core/DiscIO/FileMonitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 extensions = { + static std::unordered_set extensions = { ".adp", // 1080 Avalanche, Crash Bandicoot, etc. ".adx", // Sonic Adventure 2 Battle, etc. ".afc", // Zelda WW