Browse Source

ignored *.fla and _ prefixed dirs

Nicolas Cannasse 12 years ago
parent
commit
c1e6308b90
1 changed files with 3 additions and 0 deletions
  1. 3 0
      hxd/res/FileTree.hx

+ 3 - 0
hxd/res/FileTree.hx

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