From e8434d4f5907004f0308248ed276ba6e9c033520 Mon Sep 17 00:00:00 2001 From: Matan Uberstein Date: Mon, 27 Jul 2015 12:26:51 +0200 Subject: [PATCH] Fixed CPP target embedded assets --- templates/haxe/DefaultAssetLibrary.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/haxe/DefaultAssetLibrary.hx b/templates/haxe/DefaultAssetLibrary.hx index dae62895f..9837242f6 100644 --- a/templates/haxe/DefaultAssetLibrary.hx +++ b/templates/haxe/DefaultAssetLibrary.hx @@ -792,7 +792,7 @@ class DefaultAssetLibrary extends AssetLibrary { ::if (assets != null)::::foreach assets::::if (!embed)::::if (type == "font")::@:keep #if display private #end class __ASSET__::flatName:: extends lime.text.Font { public function new () { __fontPath = #if ios "assets/" + #end "::targetPath::"; name = "::fontName::"; super (); }} ::end::::end::::end::::end:: -#if (windows || mac || linux) +#if (windows || mac || linux || cpp) ::if (assets != null):: ::foreach assets::::if (embed)::::if (type == "image")::@:image("::sourcePath::") #if display private #end class __ASSET__::flatName:: extends lime.graphics.Image {}