mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 22:25:38 +00:00
Merge pull request #494 from jrassa/variables-in-imports
allow variables in import elements
This commit is contained in:
commit
5af905e2c1
|
@ -248,7 +248,7 @@ void ThemeData::parseIncludes(const pugi::xml_node& root)
|
||||||
|
|
||||||
for(pugi::xml_node node = root.child("include"); node; node = node.next_sibling("include"))
|
for(pugi::xml_node node = root.child("include"); node; node = node.next_sibling("include"))
|
||||||
{
|
{
|
||||||
const char* relPath = node.text().get();
|
std::string relPath = resolvePlaceholders(node.text().as_string());
|
||||||
std::string path = Utils::FileSystem::resolveRelativePath(relPath, mPaths.back(), true);
|
std::string path = Utils::FileSystem::resolveRelativePath(relPath, mPaths.back(), true);
|
||||||
if(!ResourceManager::getInstance()->fileExists(path))
|
if(!ResourceManager::getInstance()->fileExists(path))
|
||||||
throw error << "Included file \"" << relPath << "\" not found! (resolved to \"" << path << "\")";
|
throw error << "Included file \"" << relPath << "\" not found! (resolved to \"" << path << "\")";
|
||||||
|
|
Loading…
Reference in a new issue