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