- skip 'samples' folder which is sometimes in roms folder. this prevents the samples zip from being added to the roms list.

This commit is contained in:
Fledge68 2019-07-24 12:47:02 -05:00
parent 85020b1f03
commit 1ce95b7ba3
2 changed files with 1 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 MiB

After

Width:  |  Height:  |  Size: 3.4 MiB

View File

@ -350,7 +350,7 @@ void GetFiles(const char *Path, const vector<string>& FileTypes,
AddFile(FullPathChar);
continue;
}
else if(depth < max_depth) //thanks libntfs (fail opendir) and thanks seekdir (slowass speed)
else if(depth < max_depth && strcmp(pent->d_name, "samples") != 0) //skip samples folder in mame roms folder
SubPaths.push_back(FullPathChar);
}
else if(pent->d_type == DT_REG)