From 06c6f60f5bd67d00b6a7d176b4cc3babacc04ab9 Mon Sep 17 00:00:00 2001 From: waddlesplash Date: Sun, 27 Sep 2015 13:26:10 -0400 Subject: [PATCH] OGL: Use SplitPath() instead of std::regex. --- Source/Core/VideoBackends/OGL/main.cpp | 7 +++++-- 1 file 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 #include -#include #include "Common/Atomic.h" #include "Common/CommonPaths.h" @@ -105,7 +104,11 @@ static std::vector GetShaders(const std::string &sub_dir = "") }); std::vector 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; }