mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-26 16:15:39 +00:00
Merge pull request #341 from jrassa/theme-variables-fix
fix resolvePlaceholders to handle multiple variables in a single string
This commit is contained in:
commit
0d21bffc4e
|
@ -188,7 +188,7 @@ std::string resolvePlaceholders(const char* in)
|
|||
|
||||
std::string prefix = inStr.substr(0, variableBegin);
|
||||
std::string replace = inStr.substr(variableBegin + 2, variableEnd - (variableBegin + 2));
|
||||
std::string suffix = inStr.substr(variableEnd + 1);
|
||||
std::string suffix = resolvePlaceholders(inStr.substr(variableEnd + 1).c_str());
|
||||
|
||||
return prefix + mVariables[replace] + suffix;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue