فهرست منبع

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 {