From a95396627c1688f94bd81bfb5c477e24c33e7b8a Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Wed, 18 Jun 2014 14:54:21 -0700 Subject: [PATCH] Fix text/byte loading on native targets --- templates/haxe/DefaultAssetLibrary.hx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/haxe/DefaultAssetLibrary.hx b/templates/haxe/DefaultAssetLibrary.hx index eb8d7eba7..925d8182f 100644 --- a/templates/haxe/DefaultAssetLibrary.hx +++ b/templates/haxe/DefaultAssetLibrary.hx @@ -185,9 +185,10 @@ class DefaultAssetLibrary extends AssetLibrary { #else - return null; + //return null; //if (className.exists(id)) return cast (Type.createInstance (className.get (id), []), ByteArray); - //else return ByteArray.readFile (path.get (id)); + //else + return ByteArray.readFile (path.get (id)); #end