diff options
| author | waddlesplash <waddlesplash@gmail.com> | 2015-09-27 13:26:10 -0400 |
|---|---|---|
| committer | waddlesplash <waddlesplash@gmail.com> | 2015-09-27 13:26:19 -0400 |
| commit | 06c6f60f5bd67d00b6a7d176b4cc3babacc04ab9 (patch) | |
| tree | c42fa79f3850ba65f1b40f9f5ad24841b82deb2f /Source/Core/VideoBackends/OGL/main.cpp | |
| parent | 5643fe5d1f55f6311d842d73c4614c3577bd10e2 (diff) | |
OGL: Use SplitPath() instead of std::regex.
Diffstat (limited to 'Source/Core/VideoBackends/OGL/main.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/main.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/OGL/main.cpp b/Source/Core/VideoBackends/OGL/main.cpp index 2466a58528..9776d4480a 100644 --- a/Source/Core/VideoBackends/OGL/main.cpp +++ b/Source/Core/VideoBackends/OGL/main.cpp @@ -38,7 +38,6 @@ Make AA apply instantly during gameplay if possible #include <algorithm> #include <cstdarg> -#include <regex> #include "Common/Atomic.h" #include "Common/CommonPaths.h" @@ -105,7 +104,11 @@ static std::vector<std::string> GetShaders(const std::string &sub_dir = "") }); std::vector<std::string> result; for (std::string path : paths) - result.push_back(std::regex_replace(path, std::regex("^.*/(.*)\\.glsl$"), "$1")); + { + std::string name; + SplitPath(path, nullptr, &name, nullptr); + result.push_back(name); + } return result; } |
