We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bbaace commit 93b2860Copy full SHA for 93b2860
src/openfl/utils/Assets.hx
@@ -75,6 +75,10 @@ class Assets
75
public static function exists(id:String, type:AssetType = null):Bool
76
{
77
#if lime
78
+ if (id != null && StringTools.endsWith(id, 'png') && type == null || type == IMAGE)
79
+ {
80
+ if (LimeAssets.exists(id.substr(0, id.length - 3) + 'astc', BINARY)) return true;
81
+ }
82
return LimeAssets.exists(id, cast type);
83
#else
84
return false;
0 commit comments