mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 01:07:22 +00:00
ZVISION: Normalize path before adding to _dirList
This commit is contained in:
parent
7b0718c6ef
commit
c33605e3c8
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user