diff --git a/lib/library.cpp b/lib/library.cpp index ccf325872..6284939a7 100644 --- a/lib/library.cpp +++ b/lib/library.cpp @@ -81,6 +81,9 @@ Library::Error Library::load(const char exename[], const char path[]) // open file.. tinyxml2::XMLDocument doc; tinyxml2::XMLError error = doc.LoadFile(path); + if (error == tinyxml2::XML_ERROR_FILE_READ_ERROR && Path::getFilenameExtension(path).empty()) + // Reading file failed, try again... + error = tinyxml2::XML_ERROR_FILE_NOT_FOUND; if (error == tinyxml2::XML_ERROR_FILE_NOT_FOUND) { // failed to open file.. is there no extension? std::string fullfilename(path);