瀏覽代碼

Merge pull request #19 from MathemanFlo/GplSupport

Support gpl files
Lubos Lenco 3 年之前
父節點
當前提交
6e347c6b28
共有 1 個文件被更改,包括 6 次插入1 次删除
  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 {