mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-29 19:55:37 +00:00
allow variables in import elements
This commit is contained in:
parent
8c0b00c490
commit
4fd0c66b90
|
@ -239,7 +239,7 @@ void ThemeData::parseIncludes(const pugi::xml_node& root)
|
|||
|
||||
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);
|
||||
if(!ResourceManager::getInstance()->fileExists(path))
|
||||
throw error << "Included file \"" << relPath << "\" not found! (resolved to \"" << path << "\")";
|
||||
|
|
Loading…
Reference in a new issue