Add Assets.hasLibrary

This commit is contained in:
Joshua Granick
2017-06-12 14:10:44 -07:00
parent cee76985f5
commit 84096b117c

View File

@@ -296,6 +296,19 @@ class Assets {
}
public static function hasLibrary (name:String):Bool {
if (name == null || name == "") {
name = "default";
}
return libraries.exists (name);
}
public static function isLocal (id:String, type:AssetType = null, useCache:Bool = true):Bool {
#if (tools && !display)