summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/main.cpp
diff options
context:
space:
mode:
authorwaddlesplash <waddlesplash@gmail.com>2015-09-21 20:01:08 -0400
committerwaddlesplash <waddlesplash@gmail.com>2015-09-27 13:25:51 -0400
commit5643fe5d1f55f6311d842d73c4614c3577bd10e2 (patch)
tree68a0d325970ea1a7ed36eeb3fc619d2a73f0ce56 /Source/Core/VideoBackends/OGL/main.cpp
parent79bf93996fbfc713c1d6aa641b3af061d1d33c36 (diff)
FileSearch: Don't use RegExs, just do string comparisons.
Nothing used the RegEx feature of FileSearch, and GCC < 4.9 doesn't support C++11 RegEx properly, so get rid of it.
Diffstat (limited to 'Source/Core/VideoBackends/OGL/main.cpp')
-rw-r--r--Source/Core/VideoBackends/OGL/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/OGL/main.cpp b/Source/Core/VideoBackends/OGL/main.cpp
index 1b4ae331b6..2466a58528 100644
--- a/Source/Core/VideoBackends/OGL/main.cpp
+++ b/Source/Core/VideoBackends/OGL/main.cpp
@@ -99,7 +99,7 @@ std::string VideoBackend::GetDisplayName() const
static std::vector<std::string> GetShaders(const std::string &sub_dir = "")
{
- std::vector<std::string> paths = DoFileSearch({"*.glsl"}, {
+ std::vector<std::string> paths = DoFileSearch({".glsl"}, {
File::GetUserPath(D_SHADERS_IDX) + sub_dir,
File::GetSysDirectory() + SHADERS_DIR DIR_SEP + sub_dir
});