1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-15 05:59:16 +00:00

Fix unnecessary error message with empty or non-existing songs.xml

This commit is contained in:
fgenesis 2014-06-13 23:40:33 +02:00
parent 17b8cd2079
commit 4a20874841

View file

@ -1252,8 +1252,14 @@ std::string Continuity::getInternalFormName()
void Continuity::loadIntoSongBank(const std::string &file)
{
if(!exists(file))
return;
XMLDocument doc;
if(readXML(file, doc) != XML_SUCCESS)
XMLError err = readXML(file, doc);
if(err == XML_ERROR_EMPTY_DOCUMENT)
return;
if(err != XML_SUCCESS)
{
errorLog("Failed to load song bank: Malformed XML");
return;