Minor tweak
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user