Suppress some 'cannot load map file' error messages in MapValidator editor plugin script.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@11680 282e977c-c81d-0410-88c4-b93c2d0d6712master
parent
97f78ec644
commit
a3fa729ae8
|
@ -93,10 +93,14 @@ try {
|
||||||
Iterator it = new RecursiveFileIterator(new File(rootDirectory));
|
Iterator it = new RecursiveFileIterator(new File(rootDirectory));
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
File file = it.next();
|
File file = it.next();
|
||||||
|
String name = file.getName();
|
||||||
if (file.isFile()
|
if (file.isFile()
|
||||||
&& file.getPath().startsWith(rootDirectory)
|
&& file.getPath().startsWith(rootDirectory)
|
||||||
&& !file.getName().equalsIgnoreCase("README")
|
&& !name.equalsIgnoreCase("README")
|
||||||
&& !file.getName().endsWith(".msg")) {
|
&& !name.equalsIgnoreCase("README.txt")
|
||||||
|
&& !name.endsWith(".msg")
|
||||||
|
&& !name.endsWith(".py")
|
||||||
|
&& !name.endsWith(".pyc")) {
|
||||||
checkMap(file, file.getPath().substring(mapDefaultFolder.length()));
|
checkMap(file, file.getPath().substring(mapDefaultFolder.length()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue