should fix isLocal when using not embedded assets on html5 and cpp
This commit is contained in:
@@ -412,20 +412,19 @@ class DefaultAssetLibrary extends AssetLibrary {
|
|||||||
|
|
||||||
public override function isLocal (id:String, type:String):Bool {
|
public override function isLocal (id:String, type:String):Bool {
|
||||||
|
|
||||||
|
#if (flash || windows || mac || linux)
|
||||||
|
|
||||||
|
return className.exists (id);
|
||||||
|
|
||||||
|
#else
|
||||||
var requestedType = type != null ? cast (type, AssetType) : null;
|
var requestedType = type != null ? cast (type, AssetType) : null;
|
||||||
|
if (requestedType == AssetType.FONT)
|
||||||
#if flash
|
|
||||||
|
|
||||||
//if (requestedType != AssetType.MUSIC && requestedType != AssetType.SOUND) {
|
|
||||||
|
|
||||||
return className.exists (id);
|
return className.exists (id);
|
||||||
|
else
|
||||||
//}
|
return path.exists (id);
|
||||||
|
|
||||||
#end
|
#end
|
||||||
|
|
||||||
return true;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user