Minor tweak

This commit is contained in:
Joshua Granick
2015-10-02 09:54:53 -07:00
parent 7e182981fe
commit 77cc799253
4 changed files with 10 additions and 15 deletions

View File

@@ -315,15 +315,14 @@ class DefaultAssetLibrary extends AssetLibrary {
#else
if (className.exists (id)) {
var fontClass = className.get (id);
return cast (Type.createInstance (fontClass, []), Image);
} else {
#if tvos
return Image.fromFile ("assets/" + path.get (id));
#else
return Image.fromFile (path.get (id));
#end
}
#end
@@ -712,7 +711,7 @@ class DefaultAssetLibrary extends AssetLibrary {
if (!className.exists (asset.id)) {
#if ios || tvos
#if (ios || tvos)
path.set (asset.id, "assets/" + asset.path);
#else
path.set (asset.id, asset.path);