Strange problems call for strange solutions.

actorid
Alexander "Ace" Olofsson 13 years ago
parent 8e07b7e050
commit 06a34b9e0d

@ -71,6 +71,9 @@ class DirArchive: public Ogre::FileSystemArchive
bool findFile(const String& filename, std::string& copy) const
{
if (filename.find(".tga") != std::string::npos)
return false;
{
String passed = filename;
if(filename.at(filename.length() - 1) == '*' || filename.at(filename.length() - 1) == '?' || filename.at(filename.length() - 1) == '<'
@ -120,8 +123,8 @@ class DirArchive: public Ogre::FileSystemArchive
if (find != current.end() && !comp(copy, current.front()))
{
std::cout << " found";
if (copy != *find && !lexicographical_compare(copy, *find, boost::algorithm::is_iless()))
std::cout << ", as different file " << *find;
if (copy != *find && !lexicographical_compare(copy, *find, boost::algorithm::is_iequal()))
std::cout << ", as different file " << *find;
std::cout << "." << std::endl;
copy = *find;

Loading…
Cancel
Save