ZVISION: Normalize path before adding to _dirList

This commit is contained in:
antoniou79 2024-05-19 11:40:07 +03:00 committed by Filippos Karapetis
parent 7b0718c6ef
commit c33605e3c8

View File

@ -214,7 +214,7 @@ bool SearchManager::loadZix(const Common::Path &name) {
void SearchManager::addDir(const Common::Path &name) {
Common::Path path;
for (Common::List<Common::Path>::iterator it = _dirList.begin(); it != _dirList.end(); ++it)
if (name.normalize().equalsIgnoreCase((*it).normalize())) {
if (name.equalsIgnoreCase(*it)) {
path = *it;
break;
}
@ -256,7 +256,7 @@ void SearchManager::listDirRecursive(Common::List<Common::Path> &_list, const Co
Common::FSList fsList;
if (fsNode.getChildren(fsList)) {
_list.push_back(fsNode.getPath());
_list.push_back(fsNode.getPath().normalize());
if (depth > 1)
for (Common::FSList::const_iterator it = fsList.begin(); it != fsList.end(); ++it)