From a3fa729ae81fdff88ea906b4abb2f7dc9806fba7 Mon Sep 17 00:00:00 2001 From: akirschbaum Date: Thu, 14 May 2009 20:21:26 +0000 Subject: [PATCH] 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-b93c2d0d6712 --- editor/scripts/MapValidator | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/editor/scripts/MapValidator b/editor/scripts/MapValidator index d4927daab..651d73258 100644 --- a/editor/scripts/MapValidator +++ b/editor/scripts/MapValidator @@ -93,10 +93,14 @@ try { Iterator it = new RecursiveFileIterator(new File(rootDirectory)); while (it.hasNext()) { File file = it.next(); + String name = file.getName(); if (file.isFile() && file.getPath().startsWith(rootDirectory) - && !file.getName().equalsIgnoreCase("README") - && !file.getName().endsWith(".msg")) { + && !name.equalsIgnoreCase("README") + && !name.equalsIgnoreCase("README.txt") + && !name.endsWith(".msg") + && !name.endsWith(".py") + && !name.endsWith(".pyc")) { checkMap(file, file.getPath().substring(mapDefaultFolder.length())); } }