Fix shader preset regex (#536)

This commit is contained in:
Tillsunset 2022-11-28 01:24:52 -06:00 committed by GitHub
parent 523a0e1706
commit 87d2f8ad55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1179,7 +1179,7 @@ std::vector<uint64> GraphicPack2::ParseTitleIds(IniParser& rules, const char* op
void GraphicPack2::ApplyShaderPresets(std::string& shader_source) const void GraphicPack2::ApplyShaderPresets(std::string& shader_source) const
{ {
const auto active_presets = GetActivePresets(); const auto active_presets = GetActivePresets();
const std::regex regex(R"(\$[a-zA-Z\_0-9]+)"); const std::regex regex(R"($[a-zA-Z_0-9]+)");
std::smatch match; std::smatch match;
size_t offset = 0; size_t offset = 0;