mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 23:55:38 +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)) {
|
||||
std::stringstream ss;
|
||||
LOG(LogWarning)
|
||||
<< error.message << ": Couldn't find file \"" << node.text().get() << "\" "
|
||||
<< ((node.text().get() != path) ? "which resolves to \"" + path + "\"" :
|
||||
"");
|
||||
// For explicits paths, print a warning if the file couldn't be found, but
|
||||
// only print a debug message if it was set using a variable.
|
||||
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;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue