mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-29 01:25:38 +00:00
If a formatVersion theme tag is found the error message now states that it's an unsupported tag and not a legacy tag
This commit is contained in:
parent
8fdddc4317
commit
45ab2228fd
|
@ -570,7 +570,7 @@ void ThemeData::loadFile(const std::map<std::string, std::string>& sysDataMap,
|
|||
|
||||
// Check for legacy theme version.
|
||||
if (root.child("formatVersion") != nullptr)
|
||||
throw error << ": Legacy <formatVersion> tag found";
|
||||
throw error << ": Unsupported <formatVersion> tag found";
|
||||
|
||||
if (sCurrentTheme->second.capabilities.variants.size() > 0) {
|
||||
for (auto& variant : sCurrentTheme->second.capabilities.variants)
|
||||
|
@ -1512,7 +1512,7 @@ void ThemeData::parseIncludes(const pugi::xml_node& root)
|
|||
|
||||
// Check for legacy theme version.
|
||||
if (root.child("formatVersion") != nullptr)
|
||||
throw error << ": Legacy <formatVersion> tag found";
|
||||
throw error << ": Unsupported <formatVersion> tag found";
|
||||
|
||||
for (pugi::xml_node node {root.child("include")}; node; node = node.next_sibling("include")) {
|
||||
std::string relPath {resolvePlaceholders(node.text().as_string())};
|
||||
|
|
Loading…
Reference in a new issue