mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-14 00:09:24 +01:00
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:
parent
25bd734578
commit
f18fec81fe
@ -38,7 +38,7 @@ bool IsSoundFile(const std::string& filename)
|
|||||||
SplitPath(filename, nullptr, nullptr, &extension);
|
SplitPath(filename, nullptr, nullptr, &extension);
|
||||||
std::transform(extension.begin(), extension.end(), extension.begin(), ::tolower);
|
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.
|
".adp", // 1080 Avalanche, Crash Bandicoot, etc.
|
||||||
".adx", // Sonic Adventure 2 Battle, etc.
|
".adx", // Sonic Adventure 2 Battle, etc.
|
||||||
".afc", // Zelda WW
|
".afc", // Zelda WW
|
||||||
|
Loading…
x
Reference in New Issue
Block a user