Explorar o código

Merge pull request #19 from MathemanFlo/GplSupport

Support gpl files
Lubos Lenco %!s(int64=3) %!d(string=hai) anos
pai
achega
6e347c6b28
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      Sources/arm/sys/Path.hx

+ 6 - 1
Sources/arm/sys/Path.hx

@@ -116,8 +116,13 @@ class Path {
 		return p.endsWith(".txt");
 	}
 
+	public static function isGimpColorPalette(path: String): Bool {
+		var p = path.toLowerCase();
+		return p.endsWith(".gpl");
+	}
+
 	public static function isKnown(path: String): Bool {
-		return isMesh(path) || isTexture(path) || isFont(path) || isProject(path) || isPlugin(path) || isText(path);
+		return isMesh(path) || isTexture(path) || isFont(path) || isProject(path) || isPlugin(path) || isText(path) || isGimpColorPalette(path);
 	}
 
 	static function checkExt(p: String, exts: Array<String>): Bool {