浏览代码

ignored *.fla and _ prefixed dirs

Nicolas Cannasse 12 年之前
父节点
当前提交
c1e6308b90
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      hxd/res/FileTree.hx

+ 3 - 0
hxd/res/FileTree.hx

@@ -30,6 +30,7 @@ class FileTree {
 		ignoredExt = new Map();
 		ignoredExt = new Map();
 		ignoredExt.set("gal", true); // graphics gale source
 		ignoredExt.set("gal", true); // graphics gale source
 		ignoredExt.set("lch", true); // labchirp source
 		ignoredExt.set("lch", true); // labchirp source
+		ignoredExt.set("fla", true); // Adobe flash
 		pairedExt = new Map();
 		pairedExt = new Map();
 		pairedExt.set("fnt", ["png"]);
 		pairedExt.set("fnt", ["png"]);
 		pairedExt.set("fbx", ["png"]);
 		pairedExt.set("fbx", ["png"]);
@@ -202,6 +203,8 @@ class FileTree {
 			if( sys.FileSystem.isDirectory(path) ) {
 			if( sys.FileSystem.isDirectory(path) ) {
 				if( ignoredDir.exists(f.toLowerCase()) )
 				if( ignoredDir.exists(f.toLowerCase()) )
 					continue;
 					continue;
+				if( f.charCodeAt(0) == "_".code )
+					continue;
 				field = handleDir(f, relPath.length == 0 ? f : relPath+"/"+f, path);
 				field = handleDir(f, relPath.length == 0 ? f : relPath+"/"+f, path);
 			} else {
 			} else {
 				var extParts = f.split(".");
 				var extParts = f.split(".");