mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-26 16:15:39 +00:00
fix resolvePlaceholders to handle multiple variables in a single string
This commit is contained in:
parent
b2111300c3
commit
27e91e78b4
|
@ -188,7 +188,7 @@ std::string resolvePlaceholders(const char* in)
|
||||||
|
|
||||||
std::string prefix = inStr.substr(0, variableBegin);
|
std::string prefix = inStr.substr(0, variableBegin);
|
||||||
std::string replace = inStr.substr(variableBegin + 2, variableEnd - (variableBegin + 2));
|
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;
|
return prefix + mVariables[replace] + suffix;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue