mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-18 13:12:50 +00:00
Strange problems call for strange solutions.
This commit is contained in:
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…
x
Reference in New Issue
Block a user