mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-29 09:35:39 +00:00
ThemeData now only prints debug messages for missing files set using variables.
This commit is contained in:
parent
b9e9178169
commit
9856a3da1b
|
@ -1136,10 +1136,22 @@ void ThemeData::parseElement(const pugi::xml_node& root,
|
||||||
|
|
||||||
if (!ResourceManager::getInstance().fileExists(path)) {
|
if (!ResourceManager::getInstance().fileExists(path)) {
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
LOG(LogWarning)
|
// For explicits paths, print a warning if the file couldn't be found, but
|
||||||
<< error.message << ": Couldn't find file \"" << node.text().get() << "\" "
|
// only print a debug message if it was set using a variable.
|
||||||
<< ((node.text().get() != path) ? "which resolves to \"" + path + "\"" :
|
if (str == node.text().as_string()) {
|
||||||
"");
|
LOG(LogWarning)
|
||||||
|
<< error.message << ": Couldn't find file \"" << node.text().get()
|
||||||
|
<< "\" "
|
||||||
|
<< ((node.text().get() != path) ? "which resolves to \"" + path + "\"" :
|
||||||
|
"");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
LOG(LogDebug)
|
||||||
|
<< error.message << ": Couldn't find file \"" << node.text().get()
|
||||||
|
<< "\" "
|
||||||
|
<< ((node.text().get() != path) ? "which resolves to \"" + path + "\"" :
|
||||||
|
"");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
element.properties[nodeName] = path;
|
element.properties[nodeName] = path;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue