Fix iOS assets

This commit is contained in:
Joshua Granick
2015-03-25 13:39:49 -07:00
parent 3c413958c4
commit 9637253bbe
2 changed files with 7 additions and 1 deletions

View File

@@ -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;

View 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));
}