Fix iOS assets
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
package lime;
|
package lime;
|
||||||
import lime.graphics.ImageBuffer;
|
|
||||||
#if !macro
|
#if !macro
|
||||||
|
|
||||||
|
|
||||||
@@ -1238,6 +1237,7 @@ import haxe.macro.Context;
|
|||||||
import haxe.macro.Expr;
|
import haxe.macro.Expr;
|
||||||
import haxe.macro.Type;
|
import haxe.macro.Type;
|
||||||
import haxe.Serializer;
|
import haxe.Serializer;
|
||||||
|
import lime.graphics.ImageBuffer;
|
||||||
import sys.io.File;
|
import sys.io.File;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -561,6 +561,8 @@ class DefaultAssetLibrary extends AssetLibrary {
|
|||||||
var bytes = ByteArray.readFile ("assets/manifest");
|
var bytes = ByteArray.readFile ("assets/manifest");
|
||||||
#elseif (mac && java)
|
#elseif (mac && java)
|
||||||
var bytes = ByteArray.readFile ("../Resources/manifest");
|
var bytes = ByteArray.readFile ("../Resources/manifest");
|
||||||
|
#elseif ios
|
||||||
|
var bytes = ByteArray.readFile ("assets/manifest");
|
||||||
#else
|
#else
|
||||||
var bytes = ByteArray.readFile ("manifest");
|
var bytes = ByteArray.readFile ("manifest");
|
||||||
#end
|
#end
|
||||||
@@ -581,7 +583,11 @@ class DefaultAssetLibrary extends AssetLibrary {
|
|||||||
|
|
||||||
if (!className.exists (asset.id)) {
|
if (!className.exists (asset.id)) {
|
||||||
|
|
||||||
|
#if ios
|
||||||
|
path.set (asset.id, "assets/" + asset.path);
|
||||||
|
#else
|
||||||
path.set (asset.id, asset.path);
|
path.set (asset.id, asset.path);
|
||||||
|
#end
|
||||||
type.set (asset.id, cast (asset.type, AssetType));
|
type.set (asset.id, cast (asset.type, AssetType));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user