Ignore files that have -set.xml in them, but don't end in that exact string
(i.e. something-set.xml~)
This commit is contained in:
parent
61655bb2b2
commit
17efea3ec0
1 changed files with 1 additions and 1 deletions
|
@ -1273,7 +1273,7 @@ void fgShowAircraft(void) {
|
|||
while ((dire = ulReadDir(dirp)) != NULL) {
|
||||
char *ptr;
|
||||
|
||||
if ((ptr = strstr(dire->d_name, "-set.xml")) ) {
|
||||
if ((ptr = strstr(dire->d_name, "-set.xml")) && ptr[8] == '\0' ) {
|
||||
SGPath afile = path;
|
||||
afile.append(dire->d_name);
|
||||
|
||||
|
|
Loading…
Reference in a new issue